Frameset onload Event
Frameset オブジェクト
定義と用法
onload イベントはページの読み込みが完了した後にトリガーされます。
構文
onload="JavaScriptCode"
| パラメータ | 説明 |
|---|---|
| JavaScriptCode | 必須。イベントがトリガーされた後に実行されるJavaScriptコード。 |
ブラウザサポート
![]()
![]()
![]()
![]()
![]()
すべての主要ブラウザが onload イベントをサポートしています。
例
例
フレームセットの読み込みが完了したら「Page is loaded」をポップアップ表示します:
<html>
<head>
<script>
function load()
{
alert("Page is loaded");
}
</script>
</head>
<frameset onload="load()" cols="50%,50%">
<frame src="frame_a.htm.html">
<frame src="frame_b.htm.html">
</frameset>
</html>
<head>
<script>
function load()
{
alert("Page is loaded");
}
</script>
</head>
<frameset onload="load()" cols="50%,50%">
<frame src="frame_a.htm.html">
<frame src="frame_b.htm.html">
</frameset>
</html>
試してみる »
Frameset オブジェクト その他の拡張