Availability: |
| ||||
JavaScript syntax: | N | myJSSTag = myDocument.classes.aClassName.aTagName | |||
N | myJSSTag = myDocument.contextual(...) | ||||
N | myJSSTag = myDocument.ids.anElementName | ||||
N | myJSSTag = myDocument.tags.aTagName | ||||
N | myJSSTag = myJSSTags.aTagName | ||||
Argument list: | aClassName | A named class within the style sheet | |||
anElementName | The value of a NAME="..." or ID="..." tag attribute. | ||||
aTagName | The name of an HTML tag | ||||
Object properties: | align, apply, background, backgroundColor, backgroundImage, bgColor, borderBottomWidth, borderColor, borderLeftWidth, borderRightWidth, borderStyle, borderTopWidth, clear, clip, color, display, fontFamily, fontSize, fontStyle, fontWeight, height, left, lineHeight, listStyleType, marginBottom, marginLeft, marginRight, marginTop, paddingBottom, paddingLeft, paddingRight, paddingTop, textAlign, textDecoration, textIndent, textTransform, top, verticalAlign, visibility, whiteSpace, width, zIndex | ||||
Object methods: | borderWidths(), margins(), paddings(), rgb() |
This is the Netscape 4.0 JSS equivalent of the DOM style object. You assign values to the properties of this object to define the styles according to the JSS rules. Browsers sometimes use different object types with incompatible properties and methods to represent the same thing. We cover them as distinctly different objects where it seems sensible. The Netscape 4.0 style settings are properties of a JSSTag object. Refer to the style object for details of the MSIE and Netscape 6.0 style control properties.
The property values for this object each represent a style attribute of an HTML tag.
To define a style setting with JSS, assign a value to this property according to the class name and tag name hierarchy.
These values are write-only and must be defined in the <HEAD> of the document. You cannot read them back or change them after the <BODY> has commenced loading.
You cannot enumerate the properties of this object so it is impossible to inspect them. Indeed, after repeated attempts to access them, they appear to be write-only properties.
Because you can only define them during the <HEAD> of a document, they don't provide much helpful facilities as regards dynamic style control.
It is highly recommended that you refrain from using these JSS facilities in any new projects. They are deprecated now that Netscape 6.0 adopts a more standardised DOM based approach to style settings.
The CSS support in Netscape 4.0 is available up to CSS level 1. In MSIE and Netscape 6.0, much of CSS level 2 is available through its more sophisticated and easier to manage style model.
Deprecated for any further use. This was available only in Netscape 4.0 and is completely removed from Netscape 6.0.
See also: | Document.contextual(), JSSTags object, style object (2) |
Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
align | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
apply | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
background | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
backgroundColor | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
backgroundImage | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
bgColor | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
borderBottomWidth | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
borderColor | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
borderLeftWidth | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
borderRightWidth | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
borderStyle | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
borderTopWidth | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
clear | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
clip | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
color | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
display | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
fontFamily | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
fontSize | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
fontStyle | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
fontWeight | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
height | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
left | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
lineHeight | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
listStyleType | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
marginBottom | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
marginLeft | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
marginRight | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
marginTop | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
paddingBottom | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
paddingLeft | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
paddingRight | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
paddingTop | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
textAlign | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
textDecoration | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
textIndent | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
textTransform | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
top | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
verticalAlign | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
visibility | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
whiteSpace | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
width | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
zIndex | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Method | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
borderWidths() | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
margins() | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
paddings() | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() |
rgb() | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Prev | Home | Next |
JSSClasses.className | Up | JSSTag.align |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |