How do i activate a function after the document FINISHED loading?
Announcement
Collapse
No announcement yet.
activating a function
Collapse
X
-
Tags: None
-
By adding it to the onload eventCode:window.onload=function(e){ e=e||window.event; yourFunction(e); }
liorean <[[email protected]]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards
-
he thanks....
for some reason when i put that in the BODY tag it did the function but my div with the ID="content" was not yet defined so it didnt work.... why is this different?
Comment
Comment