当前位置: 代码迷 >> JavaScript >> google浏览器不兼容有关问题window.location.href
  详细解决方案

google浏览器不兼容有关问题window.location.href

热度:116   发布时间:2012-11-10 10:48:51.0
google浏览器不兼容问题window.location.href
Response.Write"<script language=javascript>alert('1111111'); window.location.href('1.html')</script>"

在google浏览器里不能进行跳转

哪位帮帮忙?

------解决方案--------------------
写法错误,应该这样写:window.location.href = "1.html";
------解决方案--------------------
1楼正解。
------解决方案--------------------
探讨
我晕,应该是window.location.href = ”"1.html"“;

------解决方案--------------------
window.location= "1.html";
这样可以兼容火狐
  相关解决方案