CoderWannaBe
.Net blog

Javascript to add something to OnLoad without breaking it

August 31, 2007 17:54 by bstinson

Just found this handy little bit of info....

<code>
var oldEvt = window.onload; window.onload = function() { if (oldEvt) oldEvt(); dostuffhere();}
</code>


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Comments are closed