textDecorationLineThrough property
Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it.
Syntax
textDecorationLineThrough: |
Property values
true-
Apply the line-through.
false-
Prevent the line-through.
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Examples
This example uses the textDecorationLineThrough property to draw a line through the text when the user clicks it with the mouse.
<p onclick="this.style.textDecorationLineThrough = true;"> Click this if you think it's unimportant. </p>
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows Server 2003 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
Show: