top, 表示是顶层页面, 因为页面之中可能嵌入了 frame 等子页面,top表示最外面一层
<html>
<head>
<script type="text/javascript">
function breakout()
{
if (window.top!=window.self)
{
window.top.location="/example/hdom/tryjs_breakout.htm"
}
}
</script>
</head>
<body>
<input type="button" οnclick="breakout()" value="跳出框架!">
</body>
</html>