I've a 'TEST' link on page, which has href='javascrip t: void(0)', and
a big iframe page.
When I load the page, window.onload event is triggered after the big
iframe page loaded,
If I click the 'TEST' link before the window.onload execute, the
window.onload will never execute in IE 6.0.
<html>
<body>
<a href='javascrip t: void(0)'>TEST</a>
<div id='tt'></div>
<iframe src='http://www.yahoo.com'> </iframe>
<script>
window.onload = function(){
document.getEle mentById('tt'). innerHTML = '1';
}
</script>
</body>
</html>
a big iframe page.
When I load the page, window.onload event is triggered after the big
iframe page loaded,
If I click the 'TEST' link before the window.onload execute, the
window.onload will never execute in IE 6.0.
<html>
<body>
<a href='javascrip t: void(0)'>TEST</a>
<div id='tt'></div>
<iframe src='http://www.yahoo.com'> </iframe>
<script>
window.onload = function(){
document.getEle mentById('tt'). innerHTML = '1';
}
</script>
</body>
</html>
Comment