
经常有如下JS跳转写法: <a href="javascript:void(0);" onclick="javascript:location.replace('http://www.baidu.com/');">test js location.replace()</a><a href="javascript:void(0);" onclick="javascript:location.href='http://www.baidu.com/';">test js location.replace()</a> 经测试,在IE6下上述两种JS跳转执行无响应,其它浏览器下均正常。 仔细分析, 猜测IE6下a链接的跳转会收到href属性中代码的影...
未完,继续阅读→关键字:
js href 跳转