JavaScript Programmer’s Reference JSSTag.textDecoration (Property) The text decoration

JavaScript Programmer’s Reference JSSTag.textDecoration (Property) The text decoration (underline, overline etc) for text in the object. CSS level 1 JavaScript 1.2 Netscape 4.0 Deprecated Availability: Property/method value type: String primitive JavaScript syntax: myJSSTag.textDecoration N myJSSTag.textDecoration = N aDecoration CSS syntax: text-decoration: aDecoration Argument list: A list of decorations for some text aDecoration The JSSTag.textDecorationproperty 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: . underline . overline . line-through . blink 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. Warnings: . Deprecated for any further use. This was available only in Netscape 4.0 and is completely removed from Netscape 6.0. See also: style.textDecoration 1266

Leave a Reply