HTMLElement Object

 

JavaScript -> Objekty -> HTMLElement Object

Popis


Nasledujúce vlastnosti a metódy môžu byť použité na všetkých HTML elementoch.

Vlastnosti


Property
Description
W3C
accessKey
Sets or returns an accesskey for an element
áno
className
Sets or returns the class attribute of an element
áno
clientHeight
Returns the viewable height of the content on a page (not including borders, margins, or scrollbars)
nie
clientWidth
Returns the viewable width of the content on a page (not including borders, margins, or scrollbars)
nie
dir
Sets or returns the text direction of an element
áno
id
Sets or returns the id of an element
áno
innerHTML
Sets or returns the HTML contents (+text) of an element
áno
lang
Sets or returns the language code for an element
áno
offsetHeight
Returns the height of an element, including borders and padding if any, but not margins
nie
offsetLeft
Returns the horizontal offset position of the current element relative to its offset container
nie
offsetParent
Returns the offset container of an element
nie
offsetTop
Returns the vertical offset position of the current element relative to its offset container
nie
offsetWidth
Returns the width of an element, including borders and padding if any, but not margins
nie
scrollHeight
Returns the entire height of an element (including areas hidden with scrollbars)
nie
scrollLeft
Returns the distance between the actual left edge of an element and its left edge currently in view
nie
scrollTop
Returns the distance between the actual top edge of an element and its top edge currently in view
nie
scrollWidth
Returns the entire width of an element (including areas hidden with scrollbars)
nie
style
Sets or returns the style attribute of an element
áno
tabIndex
Sets or returns the tab order of an element
áno
title
Sets or returns the title attribute of an element
áno



Metódy


Method
Description
W3C
toString()
Converts an element to a string
áno




vytlačiť článok  hľadať súvisiace články 
Vyhľadávanie na stránke
Reklama
Náhodný obrázok
náhodný obrázok
Kontakty

Martin Kasman, M Software
Smreková 3095/23
Email: martin@kasman.sk

Telefón: 0908 270 294