...

View Full Version : How to run Javascript only after page was fully rendered



xibitech
12-28-2006, 09:47 PM
Hi,

I am a newbie in javascript, i need some advice on the syntax i should use if i want my javascript to run only after the page was fully loaded and parsed.

Thanks in advance,
Gili

nikkiH
12-28-2006, 10:10 PM
<body onload="yourFunction()">

Put your script in a function in the <head> section of the document.

xibitech
12-30-2006, 06:10 PM
Thanks, appreciate your help!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum