Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

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:
© 2014 Microsoft. All rights reserved.