ie6 bug target="_top" 不起作用(原因是跨域,ie6会更加严格,当都添加可信任站点时问题解决。)
html
1
2
3
4
5
6
|
<html>
<body>
</body>
</html>
|
iframe
1
2
3
4
5
6
|
<html>
<body>
</body>
</html>
|
解决方法:
1
2
3
4
5
6
|
<html>
<body>
<a href=
"http://www.google.com"
target=
"_top"
onclick=
"javascript:if(window.top){window.top.location='http://www.google.com';}"
>Let's go to Google!</a>
</body>
</html>
|