读书人

window.location.href 在 FireFox 3.0

发布时间: 2012-04-05 12:42:40 作者: rapoo

window.location.href 在 FireFox 3.0.3 下却不管用,有什么好的解决办法没有?
<html>
<head>
<title>test location</title>
</head>
<body>
test
<script type="text/javascript" lang="javascript">
alert("测试测试window.location.href");
window.location.href("http://www.tom.com");
</script>
</body>
</html>

在IE 6.0下 可顺利打开 http://www.tom.com ,在 FireFox 3.0.3 下却不管用,有什么好的解决办法没有?

[解决办法]
没试过.这个呢?
document.location.href
[解决办法]
window.open()
[解决办法]

探讨
window.open()

读书人网 >asp.net

热点推荐