On this page I test the onload
event in Opera.
Which alert(s) did you see? You're supposed to see only the 'Function 2' alert, but Opera 7.50 also shows 'Function 1'.
<script> [etc] window.onload = functionone; // --> </script> </head> <body onload="functiontwo()">
The inline onload
event handler in the body
is defined last, so it should
overwrite the earlier window.onload
. However, it doesn't in Opera.