JSSTag.textDecoration (Property)

The text decoration (underline, overline etc) for text in the object.


CSS level - 1
JavaScript - 1.2
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:NmyJSSTag.textDecoration
NmyJSSTag.textDecoration = aDecoration
CSS syntax:text-decoration: aDecoration
Argument list:aDecorationA list of decorations for some text

The JSSTag.textDecoration property corresponds to the text-decoration CSS property.

This controls the decoration of the text on screen with additional overprinting or dynamics.

The following values are permitted:

Beware when you use the underline attribute, people may think that it is a hyperlink. Also avoid using the blink decoration unless you really need to. It can become very annoying for the user unless it is used with taste and discretion.

The default value for this property is "none".

This value is not inherited from its parent container element although the attributes of the parent will persist.


See also:style.textDecoration