开发者

How to prevent page refreshes on tab switching in IE7?

For a specific website (internal to network, coded in XHTML) the behavior in IE6 was that when ever the window is re-sized or restored the page refreshes.

Since IE6 doesn't have tabs I upgraded to IE7 - but the problem with IE7 is whenever we switch from one 开发者_运维知识库tab to another, its makes the active tab's page to refresh, and this happens all the time.

After googling a bit, I found a temporary solution, (to disable the Meta-Refresh property in IE settings). This has resolved the problem to some extent but still refreshes happens.

Is there a way to permanently disable the refreshing of page when tabs are switched ?


In my opinion your solution is to use something along the lines of:

<!--[if IE #]>
Special instructions for IE # here
Rather than on restored just leave your code to refresh in resize. 
Depending on what your page is doing you most likely may not need it to 
refresh on resize using IE8+.
<![endif]-->

Otherwise I would just plan on the IE8+ being the used browser and not worry about what it does in IE6 anymore.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜