开发者

Why IE7 iframes pops up in new window on page load

开发者 https://www.devze.com 2023-02-19 00:38 出处:网络
I have a javascript that sets the iframe \'src\' on page load. Every time the page refreshes or the iframe itself it creates multiple pop-ups of that iframe.

I have a javascript that sets the iframe 'src' on page load. Every time the page refreshes or the iframe itself it creates multiple pop-ups of that iframe.

Here is an example of how I set the URL to the iF开发者_如何转开发rame: iframe ID is 'stage'

document.getElementById('stage').src = 'xyz.html';

Please, any thoughts on that.


After setting the src attribute to a wrong value, some browsers get problems with later (correct) values. Some of them get also problems if you display a local file (file://...) and later a global one (http://...) in the same iframe.

If you like to get more personalized help, you should post some more lines of your code.

0

精彩评论

暂无评论...
验证码 换一张
取 消