JAVASCRIPT基础学习篇(11)--ECMAScript Basic7(The Browser Object Model)

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"]

你可能感兴趣的:(JavaScript,html)