...

View Full Version : activating a function



JAVAEOC
02-13-2004, 06:52 PM
How do i activate a function after the document FINISHED loading?

liorean
02-13-2004, 07:00 PM
By adding it to the onload event

window.onload=function(e){
e=e||window.event;
yourFunction(e);
}

JAVAEOC
02-14-2004, 03:51 AM
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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum