
Originally Posted by
Cyclone
1. Is body onload faster then using window.onload?
I don't know, although I would guess that 'body onload' would be faster.

Originally Posted by
Cyclone
2. Do these events get executed before any of the page is displayed?
No, since the page has to load first.

Originally Posted by
Cyclone
3. Can you use body onload in a external javascript file instead of in the <body> tag?
Yes, since
Code:
<script type="text/javascript">
function bla(){
...do-something...
]
</script>
...
<body onload="bla()">
can be replaced with:
Code:
<script type="text/javascript">
function bla(){
...do-something...
]
window.onload=bla;
</script>
which, in turn, can be put in an external js-file.
===
Arie.
Bookmarks