Javascript Reference
Categories: styleSheet

javascript styleSheet imports[ ]

@Aug. 15, 2009, 12:26 p.m.
imports[ ] Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

 

Read-only  

Returns a collection (array) of styleSheet objects imported into an explicit styleSheet object via the @import rule. See the imports collection object for further discussion. For Netscape 6, you must loop through all cssRule objects of a styleSheet object in search of those with type property values equal to 3 (the same as the cssRule object's IMPORT_RULE constant).

 
Example
 
var allImportRules = document.styleSheets[0].imports;
 
Value

Reference to an imports collection object.

 
Default

Array of zero length.


Powered by Linode.