HTMLElement : Element
Instance Properties
A space separated list of CSS class names for this element. Corresponds to the class
attribute in HTML. See classList
for an easier way to manipulate the classes.
The height of this
in CSS pixels. Includes this
's border and scrollbar. See also Element.clientHeight and Element.scrollHeight.
Example:
RunResults:
The width of this
in CSS pixels. Includes this
's border and scrollbar. See also Element.clientWidth and Element.scrollWidth.
Example:
RunResults:
Contains CSS styles directly set on this
. Use window.getComputedStyle(element)
to get the effective style including styles from CSS rules.
Example:
RunResults:
Instance Events
Called when the mouse enters the element or any of its descendant nodes. Note, unlike mouseover
, mouseenter
does not bubble and so it will only fire once as long as the mouse remains within this
. See also mouseleave
.
Example:
RunResults:
Called when the mouse leaves the element or any of its descendant nodes. Note, unlike mouseout
, mouseleave
does not bubble and so it will not fire while mouse remains within this
. See also mouseenter
.
Example:
RunResults:
Called when the mouse leaves the element by moving out of the bounds of this
or by entering the bounds of a child of this
. Note, unlike mouseleave
, mouseout
bubbles and will fire each time the mouse moves to a different child within this
. See also mouseover
.
Example:
RunResults:
Called when the mouse is directly over this
. Note, unlike mouseenter
, mouseover
bubbles and will fire each time the mouse moves to a different child within this
. See also mouseout
.