Luckily, there is a way to keep your body running at the server level and a javascript function to the onload method.
First, remove the onload attribute from your body tag:
<body runat="server" id="masterbody">
Now, in the code behind your page or in my case, the master page, add the following code:
masterbody.Attributes.Add("onload", "javascript:myFunction();")
0 comments:
Post a Comment