level 9
html:
<a href="javascript:test2();" onclick="ie6test()">ie6</a><br>
js:
function ie6test() {
location.href = "http://www.baidu.com";
}
function test2(){
return true;
}
这段代码,看起来我认为会是点击能跳转到百度首页的,但是
测试了这段代码
测试环境:
google 31 --能跳转到百度
360 6.2 --能跳转到百度
IE系列 --跳到javascript:test2();页面,内容是true
FF 26 --跳到javascript:test2();页面,内容是true
其他浏览器未测试
无法理解...
2014年01月16日 06点01分