Question about the "On Load" attribute

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
complete
Forum Newbie
Posts: 7
Joined: Mon Jul 04, 2005 3:26 am

Question about the "On Load" attribute

Post by complete »

Is "On Load" or "OnLoad" an attrubute of the <html> tag or the <body> tag? I want to run a javascript function when my web page loads.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Question about the "On Load" attribute

Post by Jonah Bron »

The <body> tag.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Question about the "On Load" attribute

Post by s.dot »

"onload" can be used on body, img, and frames I believe.
I haven't used it in so long.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply