Go Back   Free website templates > Web Template Help > JavaScript
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to share free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2008, 11:17 AM
Member
 
Join Date: Oct 2007
Posts: 68
indumathi is on a distinguished road
Default onload function

hi all,

is it wise to use onload in body tag? for ex: <body onload="sample()" >

and will it affect the other js already included in a page?

and will the jss and css load when the page loads?

thnks,
indu
Reply With Quote
  #2 (permalink)  
Old 11-11-2008, 02:32 PM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,776
ishkey will become famous soon enough
Default

Sure - The browser triggers "onLoad" when the document is finished loading.
No it will not affect the other "js" on the page.
The "css" is call first, followed by those "js" encased in the "head section", followed by the body.
Go for it.
__________________

Consultant - Programmer - WebMaster
cleandeck - lawn mower undercoating
wilmargraphite - graphite lubricants
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:03 PM.



mouseover mouseover mouseover