Change master page <body> and <form> attributes from a child page
-
Hi, Is there a way to change the and
tags of the master page from a child page? I want to do the following: - Add onload, onclick and onkeypress attributes to the master - Add autocomplete, enctype and action attributes to the master - Change the master method to POST The idea is that the page will redirect to the url specified in the after the submit button is clicked. Thanks and regards,
Rafferty
-
Hi, Is there a way to change the and
tags of the master page from a child page? I want to do the following: - Add onload, onclick and onkeypress attributes to the master - Add autocomplete, enctype and action attributes to the master - Change the master method to POST The idea is that the page will redirect to the url specified in the after the submit button is clicked. Thanks and regards,
Rafferty
To add attributes to the body tag, refer to this[^] tip. For adding attributes to the form, you can refer to that tip as well, particularly on the part of exposing the properties. And then on your Master Page, you can access the attributes of the form by using
this.[name of your form].Attributes
Signature construction in progress. Sorry for the inconvenience.