textDecorationUnderline property (Internet Explorer)

Switch View :
ScriptFree
textDecorationUnderline property

[This documentation is preliminary and is subject to change.]

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

Syntax

textDecorationUnderline: VARIANT_TRUE | VARIANT_FALSE

Property values

VARIANT_TRUE

Apply the underline.

VARIANT_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

DLL

Mshtml.dll

See also

defaults
runtimeStyle
style
textDecoration

 

 

Build date: 3/14/2012