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

HTML DOM
DOM TableRow 对象
DOM Textarea 对象
DOM Window 对象

HTML DOM 中的 DOM Input Hidden对象


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

Hidden 对象

The Hidden object represents a hidden field in an HTML form. For each instance of an <input type="hidden"> tag in an HTML form, a Hidden object is created.
当HTML表单中出现<input type="hidden">标签就意味着Hidden对象建立起来了

You can access a Hidden object by indexing the elements array (by number or name) of the corresponding form or by using getElementById().
你可以根据表单使用元素数组索引(数字或是名称)或者使用getElementById()来访问Hidden对象。

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

Hidden 对象属性

Property
属性
Description
描述
IE  F N W3C
defaultValue Sets or returns the initial value of the hidden field
设置或返回hidden field的初始值
3 1 2 Yes
form Returns a reference to the hidden field's parent form
返回hidden field父表单的参考
3 1 2 Yes
id Sets or returns the id of the hidden field (In IE 4 this property is read-only)
设置或返回hidden field的id
4 1   No
name Sets or returns the name of the hidden field
设置或返回hidden field的name
3 1 2 Yes
type Returns the type of the form element. For a hidden object it will always be "hidden"
返回表单里的元素类型。hidden对象就显示"hidden"
4 1 3 Yes
value Sets or returns the value of the value attribute of the hidden field
设置或返回hidden field的value属性值
3 1 2 Yes

评论 (0) All

登陆 | 还没注册?