asp.net.ph

Skip Navigation Links

textDecorationLineThrough Property

CSS Attributes Index   Text Attributes


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



© 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