...

View Full Version : FireFox: document.body.onload=function



Jerome
11-03-2004, 09:33 PM
Hi,

document.body.onload=function
window.onresize=function;

etc, are not working in FireFox

What would be the correct syntax?

Jerome

liorean
11-03-2004, 10:24 PM
Events are a little special. The DOM handling of events differes substantially from the iew handling of events, which in turn is far from how the DOM0 event model worked. If you want your events to work with all browsers, the easiest way is to use window.onevent for all the events that are normally placed on the body element in HTML.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum