allan smith
05-17-2004, 06:30 AM
If I have the following link in the <head> area
<script src="tsrjscript.js" type="text/javascript">
</script>
And inside this .js file there is a function
window.onload {
...
}
plus inline code for execution during the .js load /parse phase
(that is code that is not a function)
plus the following statement in the appropriate part of the HTML document
<body onload="map_email_link ()">
what is the order of execution
I am expecting
a) Inline code
b) window.onload function
c) body onload function
Is this correct - if not what?
<script src="tsrjscript.js" type="text/javascript">
</script>
And inside this .js file there is a function
window.onload {
...
}
plus inline code for execution during the .js load /parse phase
(that is code that is not a function)
plus the following statement in the appropriate part of the HTML document
<body onload="map_email_link ()">
what is the order of execution
I am expecting
a) Inline code
b) window.onload function
c) body onload function
Is this correct - if not what?