'addImport()' Syntax, Parameters and Note : addImport « Javascript Methods « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Methods » addImport 
'addImport()' Syntax, Parameters and Note

Note:

Adds a style sheet to the imported styleSheets
Returns the index of the style sheet.
    
Syntax:
    
document.styleSheets[index].addImport(param1, param2)


Parameters:
    param1   Required; the location of the style sheet file.
    param2   Optional; the index of the style sheet. 
             If an index is not specified, the style sheet is added to the end.

    

      
      
Related examples in the same category
1.'addImport()' Example
2.'addImport()' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.