B
buhailiang
I've a 'TEST' link on page, which has href='javascript: 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='javascript: void(0)'>TEST</a>
<div id='tt'></div>
<iframe src='http://www.yahoo.com'></iframe>
<script>
window.onload = function(){
document.getElementById('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='javascript: void(0)'>TEST</a>
<div id='tt'></div>
<iframe src='http://www.yahoo.com'></iframe>
<script>
window.onload = function(){
document.getElementById('tt').innerHTML = '1';
}
</script>
</body>
</html>