フレームを解除するには

●フレーム分割ファイル
<html>
<head>
<title>Sample</title>
<frameset cols="50%,*">
<frame src="left.html">
<frame src="right.html" name="rightFrame">
</frameset>
</head>
</html>

●左フレームのファイル
<html>
<head>
<title>Sample</title>
<script type="text/javascript"><!--
function clearFrame()
{
top.location.href = "clear.html";
}
// --></script>
</head>
<body>
フレームを解除します。<br><br>
<form>
<input type="button" value="フレーム解除" onClick="clearFrame()"><br>
</form>
</body>
</html>

●右フレームのファイル
<html>
<head>
<title>Sample</title>
</head>
<body>
右フレームです。
</body>
</html>

・サンプルを実行
・サンプルをダウンロード
逆引きクイックリファレンス JavaScript 説明などは本書を参考にしてください。