CSS Attributes Index Text Attributes
Sets or retrieves whether the text in the object has a line drawn through it.
HTML |
N/A |
Script |
object.style.textDecorationLineThrough = bLineThrough ] |
true |
Apply the line-through. |
false |
Prevent the line-through. |
The property is read/write with no default value.
The following example will cross out the text when it’s clicked with the mouse.
<P onclick="this.style.textDecorationLineThrough=true;">
Click this if you think it’s unimportant.
</p>
textDecoration