Javascript Reference
Categories: styleElement

javascript styleElement Description

@March 15, 2008, 1:22 a.m.
style (element)Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

  

The style element object reflects the style HTML element. This object is separate from the style object that is accessed as a property of virtually every element in a document. The style element object is generated in a document via the <style> tag, which can have a unique ID value assigned to it; the style (property) object contains all the style properties and their current values as set for a particular element.

 
HTML Equivalent
 
<style>
 
Object Model Reference
 
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
disabledmediasheetstyleSheettype
 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties
 
HandlerFirefox/Netscape/NNIEChrome/Safari/DOM
onerrorn/a4n/a
onloadn/a4n/a

Powered by Linode.