Javascript Reference
Categories: tags

javascript tags Description

@Aug. 15, 2009, 12:24 p.m.
tags NN |4| IE n/a Chrome/Safari/DOM n/a  

 

  

The tags object is used by JavaScript syntax for style sheets in Navigator 4 only. As a property of the document object, this tags object is used in building references to particular HTML elements to get or set their style-related properties. The direct properties of the tags object are all HTML element types. For example:

[document.]tags.p
[document.]tags.h1
 

There is no need to repeat a list of all HTML elements as properties for this object. These references are usable inside style elements with a type set to text/javascript. That's where you assign values to style sheet properties with JavaScript syntax, as in the following examples:

tags.p.color = "green";
tags.h1.fontSize = "14pt";
 

The properties in the following list are not properties of the tags object per se, but rather of the style sheet associated with an element, class, or ID singled out by a JavaScript syntax assignment statement. The properties are listed here for convenience (and historical completeness). Properties dedicated to element positioning are listed separately from regular style properties. For information about these property values, consult the CSS reference, where you can find details of all style sheet properties listed by CSS syntax.

 
Style Object-Specific Properties
 
backgroundColor backgroundImage borderBottomWidth borderColor
borderLeftWidth borderRightWidth borderStyle borderTopWidth
borderWidths( ) color display fontFamily
fontSize fontStyle fontWeight listStyleType
marginBottom marginLeft marginRight margins( )
marginTop paddingBottom paddingLeft paddingRight
paddings paddingTop textAlign textDecoration
textTransform verticalAlign whiteSpace  
 
Position Object-Specific Properties
 
background bgColor clip left
top visibility zIndex  

Powered by Linode.