js object

来源:互联网 发布:防止sql注入的原理 编辑:程序博客网 时间:2024/05/29 02:45

HTMLElement Object

The following properties, and methods can be used on all HTML elements.

Note: All elements can also use the properties/methods of the Node object and the Element object.


Properties

PropertyDescriptionW3CaccessKeySets or returns an accesskey for an elementYesclassNameSets or returns the class attribute of an elementYesclientHeightReturns the viewable height of the content on a page (not including borders, margins, or scrollbars)NoclientWidthReturns the viewable width of the content on a page (not including borders, margins, or scrollbars)NodirSets or returns the text direction of an elementYesidSets or returns the id of an elementYesinnerHTMLSets or returns the HTML contents (+text) of an elementYeslangSets or returns the language code for an elementYesoffsetHeightReturns the height of an element, including borders and padding if any, but not marginsNooffsetLeftReturns the horizontal offset position of the current element relative to its offset containerNooffsetParentReturns the offset container of an elementNooffsetTopReturns the vertical offset position of the current element relative to its offset containerNooffsetWidthReturns the width of an element, including borders and padding if any, but not marginsNoscrollHeightReturns the entire height of an element (including areas hidden with scrollbars)NoscrollLeftReturns the distance between the actual left edge of an element and its left edge currently in viewNoscrollTopReturns the distance between the actual top edge of an element and its top edge currently in viewNoscrollWidthReturns the entire width of an element (including areas hidden with scrollbars)NostyleSets or returns the style attribute of an elementYestabIndexSets or returns the tab order of an elementYestitleSets or returns the title attribute of an elementYes
原创粉丝点击