프레임 셋 온로드 이벤트
정의 및 사용
페이지 후 온로드 이벤트가 발생로드했습니다.
문법
onload="JavaScriptCode"
参数 | 描述 |
---|---|
JavaScriptCode | 必须。在事件触发后执行的Javascript代码。 |
브라우저 지원
모든 주요 브라우저는 온로드 이벤트를 지원
예
예
로드가 완료 프레임 팝업 "페이지로드"입니다 :
<html>
<head>
<script>
function load()
{
alert("Page is loaded");
}
</script>
</head>
<frameset onload="load()" cols="50%,50%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
</frameset>
</html>
<head>
<script>
function load()
{
alert("Page is loaded");
}
</script>
</head>
<frameset onload="load()" cols="50%,50%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
</frameset>
</html>
»시도
프레임 셋 객체