CSS Attributes Index Text Attributes
Sets or retrieves whether the text in the object is underlined.
HTML |
N/A |
Script |
object.style.textDecorationUnderline = bUnderline ] |
true |
Apply the underline. |
false |
Prevent the underline. |
The property is read/write with no default value.
The following example will underline the text when the user clicks the text with the mouse.
<P onclick="this.style.textDecorationUnderline=true;">
Click this if you think it’s important.
</p>
textDecoration