views:

8896

answers:

4

Which is more widely supported, window.onload or document.onload?

+3  A: 

window.onload

one reason for this is:

"...the current thinking is that a widow on load is best because as you say good to seperate structure from action"

which is seen here

jmein
+3  A: 

window.onload however they are often the same thing. Similarly body.onload becomes window.onload in IE.

AnthonyWJones
A: 

Window.onload is the standard, however - the web browser in the PS3 (based on Netfront) doesn't support the window object, so you can't use it there.

fritzfromlondon