当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > DOM Frame 对象

HTML DOM
DOM Input Checkbox
DOM Input File 对象
DOM Input Hidden对象
DOM Input Password 对象
DOM Input Radio 对象
DOM Input Reset 对象
DOM Input Submit 对象
DOM Input Text 对象
DOM Link 对象
DOM Location 对象
DOM Meta 对象
DOM Navigator 对象
DOM 对象
DOM Option 对象
DOM Screen 对象
DOM Select 对象
DOM Style 对象
DOM Table 对象
DOM TableData 对象
DOM TableHeader 对象

HTML DOM 中的 DOM Frame 对象


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 953 ::
收藏到网摘: n/a

Frame Object
Frame 对象

The Frame object represents an HTML frame. For each instance of an HTML <frame> tag in a document, a Frame object is created.
每当HTML中有<frame>标签就会建立一个Frame对象

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

Frame 对象属性

Property
属性
Description
描述
IE  F N W3C
contentDocument Returns the document the frame contains
返回文档框架的内容
-     Yes
frameBorder Sets or returns whether to display a border for the frame
设置或获取是否显示框架的边框。
5 1 6 Yes
id Sets or returns the id of the frame (In IE 4 this property is read-only)
获取标识对象的字符串。
4 1   No
longDesc Sets or returns a URL to a long description of the frame
设置或获取对象长描述的统一资源标识符(URI)。
6     Yes
marginHeight Sets or returns the top and bottom margins of the frame
设置或获取显示框架中文本之前的上下边距高度。
5 1 6 Yes
marginWidth Sets or returns the left and right margins of the frame
设置或获取显示框架中文本之前的左右边距宽度。
5 1 6 Yes
name Sets or returns the name of the frame
设置或获取框架的名称。
5 1 6 Yes
noResize Sets or returns whether the frame can be resized
设置或返回框架是否可以被重定大小
5 1 6 Yes
scrolling Sets or returns whether the frame can be scrolled
设置回返回框架是否可以滚动
5 1 6 Yes
src Sets or returns the URL to be loaded by the frame
设置或返回框架内加载内容的URL
5 1 6 Yes

Frame 对象方法

Method
方法
Description
描述
IE F N W3C
blur() Removes focus from the frame
使元素失去焦点并触发 onblur 事件
5 1   No
focus() Gives focus to the frame
使得元素得到焦点并执行由 onfocus 事件指定的代码。
5 1   No

Frame 对象事件

语法: object.event_name="someJavaScriptCode"

Event
事件
Description
描述
IE F N W3C
onBlur Executes some code when the frame loses focus
对象失去输入焦点时触发。
5     No 
onFocus Executes some code when the frame gets focus
对象获得焦点时触发。
5     No

评论 (0) All

登陆 | 还没注册?