Name
addImport( ) — NN n/a IE 4 DOM n/a
Synopsis
addImport(url
,
[index
])
Adds an external style sheet specification to a
styleSheet
object.
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).
Parameters
-
url
A complete or relative URL to the style sheet
(
.css) file.-
index
An optional integer indicating where in the collection the new element should be placed.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.