Hook a javascript event to page load

Posted by Jagd on Stack Overflow See other posts from Stack Overflow or by Jagd
Published on 2009-06-03T18:57:39Z Indexed on 2010/05/10 7:34 UTC
Read the original article Hit count: 227

I have an aspx that has the following javascript function being ran during the onload event of the body.

<body onload="startClock();">

However, I'm setting the aspx up to use a master page, so the body tag doesn't exist in the aspx anymore. How do I go about registering the startClock function to run when the page is hit and still have it use a masterpage?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about .aspx