textDecorationUnderline property
Sets or retrieves whether the text in the object is underlined.
Syntax
textDecorationUnderline: |
Property values
true-
Apply the underline.
false-
Prevent the underline.
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Examples
This example uses the textDecorationUnderline property to 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>
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows Server 2003 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
Show: