javascript document styleSheets[ ]
@March 15, 2008, 1:22 a.m.
styleSheets[ ] | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2 |
|
Read-only |
Returns an array of all styleSheet objects in the current document. Each style object may contain any number of style sheet rules. The styleSheets[ ] collection counts the number of actual <style> tags in the document as well as <link> tags that load external style sheet files. Items in this array are indexed (zero-based) in source code order. An @import style sheet object is accessible via a styleSheet object's cssRule.styleSheet property. See the styleSheet object. |
|
Example | |
for (var i = 0; i < document.styleSheets.length; i++) { // loop through each styleSheet object } |
|
Value | |
Array of styleSheet object references. |
|
Default | |
Array of zero length. |
Permanent URL:
http://javascript.gakaa.com/document-stylesheets-7-0-6-.aspx
Powered by Linode.