html - ASP.NET <Body onload="initialize()"> -


i creating asp.net custom control.

i want set body onload event of aspx page control resides.

please note cannot rely on body tag in aspx page having runat="server".

any ideas??

cheers.

inline javascript! incase can't use jquery

 function addloadevent(func) {       var oldonload = window.onload;       if    (typeof window.onload != 'function')       {         window.onload = func;          } else {      window.onload = function() {        if (oldonload) {          oldonload();            }        func();      }   } }   addloadevent(initialize); 

link read http://www.webreference.com/programming/javascript/onloads/
credits goto http://simonwillison.net/


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -