justuptime.com - monitor your servers & websites

2 scripts, 1 page requiring "Body Onload" tag...How?

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 3 posts

Joined: Jul 2001

Can someone help out please?...

If you have 2 JavasSript codes being used on the same html page, each for a different purpose, for example...one to preload images and one to make a pop-up window, which each require you to use the tags, what is the proper way to achieve this?

Abhishek Reddy's picture
Moderator

He has: 3,303 posts

Joined: Jul 2001

to call multiple scripts separate them with semicolons.

eg:

.... onLoad="callscript1(); callscript2();"

Smiling

They have: 3 posts

Joined: Jul 2001

Thank you very much for the help...and the quick response!