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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute javascript before html loads

Status
Not open for further replies.

Nidolap

Programmer
Jan 30, 2003
1
PT
Hi all!

My problem is that I have a big page full of thumbnails and it takes a while to download them all, and the javascript is triggered when someone clicks on any thumb. But the script doesn't work until every image is downloaded. Is there any way to force the script to run before page finishes loading?

I use an external .js file and it is declared inside the <HEAD> section.

thanks very much for your help!
Joao
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top