asp.net.ph

Skip Navigation LinksAbakada: Back to Basics > Language References > CSS Properties > Text Properties > textDecorationLineThrough Property

textDecorationLineThrough Property


Sets or retrieves whether the text in the object has a line drawn through it.

Syntax

HTML N/A
Script object.style.textDecorationLineThrough = bLineThrough ]

Possible Values

true Apply the line-through.
false Prevent the line-through.

The property is read/write with no default value.

Example

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>
See Also

textDecoration

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note