Home  >  Article  >  Backend Development  >  网页中包含iframe,js 更改location.href之后 进度条一直在加载。该如何解决

网页中包含iframe,js 更改location.href之后 进度条一直在加载。该如何解决

WBOY
WBOYOriginal
2016-06-13 13:53:401283browse

网页中包含iframe,js 更改location.href之后 进度条一直在加载。
a.htm


<script><br />win1.location.href="abc.php"<br /></script>


结果 a.htm的进这度条一直在加载。实际程序已经运行完了。

而且直接运行abc.php也没问题。




------解决方案--------------------
你那里肯定有问题,我刚刚试过了,没事的啊,运行完后进度条是显示已经完成的了,(我用的是IE7),可能是你那个abc.php有判断语句什么的?你把abc.php贴出来看看
------解决方案--------------------
关注..
有时候我也会遇到这种情况,不过后来老是自己好了
我也不知道为什么!~
------解决方案--------------------
现在的浏览器都不怎么对iframe很友好了,尽量少用iframe
------解决方案--------------------
程序有问题吧!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn