当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM self 属性
The self property returns a reference to the current window.
self属性可返回当前窗口参考
window.self |
<html>
<head>
<script type="text/javascript">
function breakout()
{
if (window.top!=window.self)
{
window.top.location="tryjs_breakout.htm"
}
}
</script>
</head> <body> <form> Click the button to break out of the frame: <input type="button" onclick="breakout()" value="Break out!"> </form> </body> </html> |
Break out of a frame
脱离框架
评论 (0) All