对document.location.reload()的IE7警告! [英] IE7 Warning on document.location.reload()!

查看:144
本文介绍了对document.location.reload()的IE7警告!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用document.location.reload()javascript方法在一些工作后刷新我的页面。

I'm using the document.location.reload() javascript method to refresh my page after some works.

当我这样做时,IE7向我显示一条警告,告诉我:"Internet Explorer需要重新发送您之前提交的信息"。

When I do that, IE7 shows me an alert, telling: "Internet Explorer needs to resend the information you've previously submitted".

有没有办法避免这种警告?这个Web应用程序将在本地Intranet上运行,所有PC都基于Internet Explorer!

Is there a way to avoid this warning? this web application will run on the local Intranet and all PCs are Internet Explorer based!

请参阅ya!@!

Chilá!

推荐答案

如果用户通过HTTP POST进入当前页面,则会出现此警告。如果您不想要这种行为,只需重新分配window.location而不是调用reload。
This warning will appear if the user got to the current page via HTTP POST.  If you don't want this behavior, just reassign window.location instead of calling reload.


这篇关于对document.location.reload()的IE7警告!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆