Export (0) Print
Expand All

textDecorationUnderline property

Sets or retrieves whether the text in the object is underlined.

Syntax

textDecorationUnderline: |

Property values

true

Apply the underline.

false

Prevent the underline.

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Examples

This example uses the textDecorationUnderline property to underline the text when the user clicks the text with the mouse.


<p onclick="this.style.textDecorationUnderline = true;">
  Click this if you think it's important.
</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