JSSTags object (Object/JSS)

Part of the Netscape Navigator style JSS rendering support.

Availability:

JavaScript - 1.2
Netscape - 4.0
Deprecated
JavaScript syntax:NmyJSSTags = myDocument.classes.aClassName
NmyJSSTags = myDocument.ids.anIdValue
Argument list:aClassNameThe name of a style class
anIdValueThe value of an ID="..." HTML tag attribute
Object properties:<tagName>

This object is somewhat like an array in that it contains a collection of objects that can be accessed associatively by name. However, unlike an array, it does not respond to the length property request. Also unlike an array, you cannot access its members using index values.

The only meaningful property of this object is one of its array elements corresponding to an HTML tag name. There is one item in this collection for each HTML tag.

This is part of the deprecated JSS support in Netscape 4.0. It is not recommended that you use these facilities in new projects.

You cannot enumerate this object to inspect its properties.

The document.tags object has properties that correspond to each of the stylable tags - for example, there is a document.tags.P, document.tags.B and document.tags.H1 object.

Each of those objects has properties such as borderWidth and color so you can set or get the property value.

Note that the tags object properties can be specified in mixed case as it is case-insensitive. Its properties contain objects that correspond to HTML tags and therefore they also have case-insensitive properties that correspond to each tag's attributes.

It's an interesting way to control style from JavaScript, but since it was only ever supported in Netscape 4.0 and is no longer available in Netscape 6.0 (which fully supports CSS), there is no future for JSS.

Warnings:

See also:Document.ids[], Document.tags[], JavaScript Style Sheets, JSSTag object, JSSTags.<tagName>

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
<tagName>1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aWarning , Deprecated

Property attributes:

DontEnum.