T
tuxedo
The way the <body onload="something()"> works ensures that the complete html
document is loaded before something() is executed.
Can the same be achieved when placing the onload call in document somewhere
except within the body tag, or must it always be in the body tag?
For example, if this is placed elsewhere ...
window.onload(something())
.... it will run before the full document has loaded, so that does not work.
Is it possible to refer to the window only when loaded in any other way?
document is loaded before something() is executed.
Can the same be achieved when placing the onload call in document somewhere
except within the body tag, or must it always be in the body tag?
For example, if this is placed elsewhere ...
window.onload(something())
.... it will run before the full document has loaded, so that does not work.
Is it possible to refer to the window only when loaded in any other way?