The Browser Object Model
window--|--document-----|
| |--anchors
| |--forms
| |--images
| |--links
| |--location
|
|--frames
|--location
|--history
|--navigator
|--screen
<html>
<head>
<title>Frameset Example</title>
一、window對象
</head>
<frameset rows=”100,*”>
<frame src=”frame.htm” name=”topFrame” />
<frameset cols=”50%,50%”>
<frame src=”anotherframe.htm” name=”leftFrame” />
<frame src=”yetanotherframe.htm” name=”rightFrame” />
</frameset>
</frameset>
</html>
使用window對象通路
window.frames[0]
window.frames["topFrame"]
top.frames[0]
top.frames["topFrame"]
或直接使用
frames[0]
frames["topFrame"]