propick2b
05-13-2009, 01:46 PM
<body onload="document.getElementById('myapplet').getVirtualMachineVersion()">
<div id="applet">
</div>
<script>
document.getElementById("applet").innerHTML = <object codebase=...name="myapplet"></object>;
</script>
</body>
From the code above,,,is it possible that the race condition occurs between the declaration of the applet object and the onload event calling to the applet's function????
I also want to know what is the sequence of execution when we have the onload event and the inline script in the body tag
<div id="applet">
</div>
<script>
document.getElementById("applet").innerHTML = <object codebase=...name="myapplet"></object>;
</script>
</body>
From the code above,,,is it possible that the race condition occurs between the declaration of the applet object and the onload event calling to the applet's function????
I also want to know what is the sequence of execution when we have the onload event and the inline script in the body tag