Javascript Reference
Categories: styleSheet

javascript styleSheet addImport( )

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

addImport(url, [index])

  

Adds an external style sheet specification to a styleSheet object.

 
Parameters
 
  • A complete or relative URL to the style sheet (.css) file.
  • An optional integer indicating where in the collection the new element should be placed.
 
Returned Value

Integer of the index position within the styleSheets[ ] collection where the style sheet was added (in case you omit the second parameter and let the browser find the end position).


Powered by Linode.