Hi all!
I have 2 pages. First page:
And second page which is a src of iframe on first page:
Now the problem is that in Firefox the loading of first page never ends... IE and Opera doesn't have this problem. Probably the problem is in a dom iframe on second page but I can't figure it out why. Does somebody have a solution for this?
Thanks
Bokula
I have 2 pages. First page:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<title>first page</title>
</head>
<body>
<iframe src="second_page.htm" frameborder="1" width="500" height="500" id="ifrm" name="ifrm"></iframe>
</body>
</html>
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<title>second page</title>
<script type="text/javascript">
function ifrm2(){
var newIfrm = document.createElement('iframe');
newIfrm.src = "about:blank";
newIfrm.id = 'ifrm22';
newIfrm.name = 'ifrm22';
newIfrm.style.width = '250px';
newIfrm.style.height = '250px';
newIfrm.frameBorder = '1';
newIfrm.onload = function(){alert(1)}
document.body.appendChild(newIfrm);
}
window.onload=ifrm2;
</script>
</head>
<body>
</body>
</html>
Now the problem is that in Firefox the loading of first page never ends... IE and Opera doesn't have this problem. Probably the problem is in a dom iframe on second page but I can't figure it out why. Does somebody have a solution for this?
Thanks
Bokula