Hi,
instead of using <body onLoad="goforit()"> command to call up a script that runs at Page load up. Is there another command that I can put into the <Script> </Script> section to run upon page load..?
Thanks.
<script type="text/javascript"> function init() { alert('Page is loaded'); } window.onload = init; </script>
thanks.
i found other way is:
<script language="JavaScript"> setTimeout('function()',0); </script>
any one knows other way(s)?
this is another way to:
<img src="/tp.gif" width="1" height="1" onLoad="snow()">
and this: http://www.codingforums.com/showthread.php?t=21201
Is there some reason that you don't want to use the typical, tried-and-tested body onload technique, or are you just curious?
i am just curious and i want to collected all ways here as a refrence
Cool, I was just curious if there was some issue with using the body tag thing that I should know about. 🙂