您的位置:首页 > Web前端 > JavaScript

window.location.reload()--解决JS页面跳转ie,firefox,opera不兼容问题

2010-06-28 16:16 1081 查看
window.location.reload()。解决JS页面跳转ie,firefox,opera不兼容问题

一用我们的页面跳转都使用,window.location.reload()。
但在firefox,opera这样不行,替代使用window.location.href="";就可以了

另外用 <meta http-equiv="refresh" content="0;url=thispage.aspx">也可以

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="0;url=all_topic.action">
</head>
<body onload="window.location.href='thispage.aspx;">
</body>
</html>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: