Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there and event handler that runs before onLoad?

Status
Not open for further replies.

trey1

Programmer
Jul 27, 2001
6
US
Does anyone know of an event handler that can run before onLoad. onLoad will only run after the page is fully loaded, I would like to use an event handler that does not have to wait for the page to fully load before I do a window.close().
 
Have you tried it like this:

<body blablabla>
<script language=&quot;JavaScript&quot;>
<!--
window.close();
//-->
</script>

I this fires while it still is loading the document. [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Put this where/when you want it to fire and set its position to absolute (I'm not sure why but it needs to be positioned to work)

<img onload=&quot;MyFunction()&quot; id=&quot;Blank&quot; src=&quot;My_Blank.gif&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top