removeImport method (styleSheet)
The imports collection represents the @import rules contained by a styleSheet object. So the removeImport method removes an @import rule from a styleSheet object.
You can find the related objects in the Supported by objects section below.
|Optional. Zero-based integer that specifies the position of the imported style file to remove in the imports collection.|
Returns the index of the newly added stylesheet in the imports collection. This value is a zero-based integer.
Example HTML code 1:
This example illustrates the use of the removeImport method:
Did you find this example helpful?
User Contributed Comments