DOM 参考

本文详细介绍了HTML DOM中的各种对象,包括Anchor、Applet、Area等,解释了每个对象的作用及应用场景,例如如何使用Button对象表示HTML表单中的按钮。

HTML DOM 对象

Follow the links to learn more about the objects and their collections, properties, methods and events.
跟随下面的连接来学习更多有关对象以及它们的集合,属性,方法以及事件。

对象描述
AnchorRepresents an HTML a element (a hyperlink)
代表了HTML的 a 元素 (超级链接)
AppletRepresents an HTML applet element. The applet element is used to place executable content on a page
代表了HTML的applet元素,applet元素可用来放置页面内可执行的内容
AreaRepresents an area of an image-map. An image-map is an image with clickable regions
代表了图象映射区域。带有可点击的图片可称为图象映射
BaseRepresents an HTML base element
代表了HTML的 base元素
BasefontRepresents an HTML basefont element
HTML的basefont元素
BodyRepresents the body of the document (the HTML body)
文档的主体(body)
ButtonRepresents a push button on an HTML form. For each instance of an HTML <input type="button"> tag on an HTML form, a Button object is created
HTML表单上的按钮。HTML表单中只要出现了<input type="button">标签,一个Button对象就建立了
CheckboxRepresents a checkbox on an HTML form. For each instance of an HTML <input type="checkbox"> tag on an HTML form, a Checkbox object is created
HTML表单中的复选框。只要HTML表单中出现了<input type="checkbox">标签,就会建立起Checkbox对象
DocumentUsed to access all elements in a page
可用来访问所有在页面中的元素
EventRepresents the state of an event, such as the element in which the event occurred, the state of the keyboard keys, the location of the mouse, and the state of the mouse buttons
代表事件的状态,比如某个元素的事件发生了,键盘按键的状态,鼠标的位置,鼠标按钮的状态
FileUploadFor each instance of an HTML <input type="file"> tag on a form, a FileUpload object is created
当HTML表单中有<input type="file">,FileUpload对象就建立起来了
FormForms are used to prompt users for input. Represents an HTML form element
表单可用于用户信息的输入递交。可代表HTML中的form元素
FrameRepresents an HTML frame
代表了HTML中的框架
FramesetRepresents an HTML frameset
HTML的框架集
HiddenRepresents a hidden field on an HTML form. For each instance of an HTML <input type="hidden"> tag on a form, a Hidden object is created
在HTML中的隐藏区域。每当HTML表单中出现<input type="hidden">标签,Hidden对象就建立起来了
HistoryA predefined object which can be accessed through the history property of the Window object. This object consists of an array of URLs. These URLs are all the URLs the user has visited within a browser window
通过Window对象的history属性所访问的预先确定对象。这个对象由一组URLs所构成。这些URLs是所有用户曾经在浏览器中访问过的URLs。
IframeRepresents an HTML inline-frame
HTML中的内联框架
ImageRepresents an HTML img element
HTML的img元素
LinkRepresents an HTML link element. The link element can only be used within the <head> tag
HTML的link元素。只能在<head>标签里使用link元素
LocationContains information about the current URL
含有当前URL的信息
MetaRepresents an HTML meta element
HTML的meta元素
NavigatorContains information about the client browser
含有客户端信息
OptionRepresents an option in a selection list on an HTML form. For each instance of an HTML <option> tag in a selection list on a form, an Option object is created
在HTML表单中的选择项。每当HTML表单中出现<option>标签,Option对象就建立了
PasswordRepresents a password field on an HTML form. For each instance of an HTML <input type="password"> tag on a form, a Password object is created
RadioRepresents radio buttons on an HTML form. For each instance of an HTML <input type="radio"> tag on a form, a Radio object is created
ResetRepresents a reset button on an HTML form. For each instance of an HTML <input type="reset"> tag on a form, a Reset object is created
ScreenAutomatically created by the JavaScript runtime engine and it contains information about the client's display screen
SelectRepresents a selection list on an HTML form. For each instance of an HTML <select> tag on a form, a Select object is created
StyleRepresents an individual style statement. This object can be accessed from the document or from the elements to which that style is applied
SubmitRepresents a submit button on an HTML form. For each instance of an HTML <input type="submit"> tag on a form, a Submit object is created
TableRepresents an HTML table element
TableDataRepresents an HTML td element
TableHeaderRepresents an HTML th element
TableRowRepresents an HTML tr element
TextRepresents a text field on an HTML form. For each instance of an HTML <input type="text"> tag on a form, a Text object is created
TextareaRepresents an HTML textarea element
WindowCorresponds to the browser window. A Window object is created automatically with every instance of a <body> or <frameset> tag
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值