Mac OS X Reference Library Apple Developer
Search

Element

Module:
core
Inherits from:
Node
Declared In:

Overview

Use the links in the table of contents to the left to access the documentation.



Functions

blur
contains
focus
getAttribute
getAttributeNode
getAttributeNodeNS
getAttributeNS
getBoundingClientRect
getClientRects
getElementsByClassName
getElementsByTagName
getElementsByTagNameNS
hasAttribute
hasAttributeNS
querySelector
querySelectorAll
removeAttribute
removeAttributeNode
removeAttributeNS
scrollByLines
scrollByPages
scrollIntoView
scrollIntoViewIfNeeded
setAttribute
setAttributeNode
setAttributeNodeNS
setAttributeNS
webkitMatchesSelector

blur



void blur(); 

contains



boolean contains(
    in Element element); 

focus



void focus(); 

getAttribute



DOMString getAttribute(
    in DOMString name); 

getAttributeNode



Attr getAttributeNode(
    in DOMString name); 

getAttributeNodeNS



Attr getAttributeNodeNS(
    in DOMString namespaceURI, 
    in DOMString localName); 

getAttributeNS



DOMString getAttributeNS(
    in DOMString namespaceURI, 
    in DOMString localName); 

getBoundingClientRect



ClientRect getBoundingClientRect(); 

getClientRects



ClientRectList getClientRects(); 

getElementsByClassName



NodeList getElementsByClassName(
    in DOMString name); 

getElementsByTagName



NodeList getElementsByTagName(
    in DOMString name); 

getElementsByTagNameNS



NodeList getElementsByTagNameNS(
    in DOMString namespaceURI, 
    in DOMString localName); 

hasAttribute



boolean hasAttribute(
    in DOMString name); 

hasAttributeNS



boolean hasAttributeNS(
    in DOMString namespaceURI, 
    in DOMString localName); 

querySelector



Element querySelector(
    in DOMString selectors) raises(DOMException); 

querySelectorAll



NodeList querySelectorAll(
    in DOMString selectors) raises(DOMException); 

removeAttribute



void removeAttribute(
    in DOMString name) raises(DOMException); 

removeAttributeNode



Attr removeAttributeNode(
    in Attr oldAttr) raises(DOMException); 

removeAttributeNS



void removeAttributeNS(
    in DOMString namespaceURI, 
    in DOMString localName) raises(DOMException); 

scrollByLines



void scrollByLines(
    in long lines); 

scrollByPages



void scrollByPages(
    in long pages); 

scrollIntoView



void scrollIntoView(
    in boolean alignWithTop); 

scrollIntoViewIfNeeded



void scrollIntoViewIfNeeded(
    in boolean centerIfNeeded); 

setAttribute



void setAttribute(
    in DOMString name, 
    in DOMString value) raises(DOMException); 

setAttributeNode



Attr setAttributeNode(
    in Attr newAttr) raises(DOMException); 

setAttributeNodeNS



Attr setAttributeNodeNS(
    in Attr newAttr) raises(DOMException); 

setAttributeNS



void setAttributeNS(
    in DOMString namespaceURI, 
    in DOMString qualifiedName, 
    in DOMString value) raises(DOMException); 

webkitMatchesSelector



boolean webkitMatchesSelector(
    in DOMString selectors) raises(DOMException); 

Member Data

childElementCount
clientHeight
clientLeft
clientTop
clientWidth
firstElementChild
lastElementChild
nextElementSibling
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
onabort
onbeforecopy
onbeforecut
onbeforepaste
onblur
onchange
onclick
oncontextmenu
oncopy
oncut
ondblclick
ondrag
ondragend
ondragenter
ondragleave
ondragover
ondragstart
ondrop
onerror
onfocus
oninput
oninvalid
onkeydown
onkeypress
onkeyup
onload
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onmousewheel
onpaste
onreset
onscroll
onsearch
onselect
onselectstart
onsubmit
ontouchcancel
ontouchend
ontouchmove
ontouchstart
previousElementSibling
scrollHeight
scrollLeft
scrollTop
scrollWidth
style
tagName

childElementCount



readonly attribute unsigned long childElementCount; 

clientHeight



readonly attribute long clientHeight; 

clientLeft



readonly attribute long clientLeft; 

clientTop



readonly attribute long clientTop; 

clientWidth



readonly attribute long clientWidth; 

firstElementChild



readonly attribute Element firstElementChild; 

lastElementChild



readonly attribute Element lastElementChild; 

nextElementSibling



readonly attribute Element nextElementSibling; 

offsetHeight



readonly attribute long offsetHeight; 

offsetLeft



readonly attribute long offsetLeft; 

offsetParent



readonly attribute Element offsetParent; 

offsetTop



readonly attribute long offsetTop; 

offsetWidth



readonly attribute long offsetWidth; 

onabort



attribute EventListener onabort; 

onbeforecopy



attribute EventListener onbeforecopy; 

onbeforecut



attribute EventListener onbeforecut; 

onbeforepaste



attribute EventListener onbeforepaste; 

onblur



attribute EventListener onblur; 

onchange



attribute EventListener onchange; 

onclick



attribute EventListener onclick; 

oncontextmenu



attribute EventListener oncontextmenu; 

oncopy



attribute EventListener oncopy; 

oncut



attribute EventListener oncut; 

ondblclick



attribute EventListener ondblclick; 

ondrag



attribute EventListener ondrag; 

ondragend



attribute EventListener ondragend; 

ondragenter



attribute EventListener ondragenter; 

ondragleave



attribute EventListener ondragleave; 

ondragover



attribute EventListener ondragover; 

ondragstart



attribute EventListener ondragstart; 

ondrop



attribute EventListener ondrop; 

onerror



attribute EventListener onerror; 

onfocus



attribute EventListener onfocus; 

oninput



attribute EventListener oninput; 

oninvalid



attribute EventListener oninvalid; 

onkeydown



attribute EventListener onkeydown; 

onkeypress



attribute EventListener onkeypress; 

onkeyup



attribute EventListener onkeyup; 

onload



attribute EventListener onload; 

onmousedown



attribute EventListener onmousedown; 

onmousemove



attribute EventListener onmousemove; 

onmouseout



attribute EventListener onmouseout; 

onmouseover



attribute EventListener onmouseover; 

onmouseup



attribute EventListener onmouseup; 

onmousewheel



attribute EventListener onmousewheel; 

onpaste



attribute EventListener onpaste; 

onreset



attribute EventListener onreset; 

onscroll



attribute EventListener onscroll; 

onsearch



attribute EventListener onsearch; 

onselect



attribute EventListener onselect; 

onselectstart



attribute EventListener onselectstart; 

onsubmit



attribute EventListener onsubmit; 

ontouchcancel



attribute EventListener ontouchcancel; 

ontouchend



attribute EventListener ontouchend; 

ontouchmove



attribute EventListener ontouchmove; 

ontouchstart



attribute EventListener ontouchstart; 

previousElementSibling



readonly attribute Element previousElementSibling; 

scrollHeight



readonly attribute long scrollHeight; 

scrollLeft



attribute long scrollLeft; 

scrollTop



attribute long scrollTop; 

scrollWidth



readonly attribute long scrollWidth; 

style



readonly attribute CSSStyleDeclaration style; 

tagName



readonly attribute DOMString tagName; 

 

Did this document help you? Yes It's good, but... Not helpful...

Last Updated: 2010-05-27