I want to access the onload event of the body tag in content page so that my javascript gets called on page load
This way
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <form id="form1"> <script type = "text/javascript"> window.onload = function () { alert("This is onload event"); }; </script> </form> </body> </html>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.