Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 ToAll elements
Mediavisual
Inheritedno
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

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

defaults
runtimeStyle
style
textDecoration

 

 

Show:
© 2015 Microsoft