asp.net.ph

Skip Navigation Links

textDecorationUnderline Property

CSS Attributes Index   Text Attributes


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

Syntax


HTML N/A
Script object.style.textDecorationUnderline = bUnderline ]

Possible Values


true Apply the underline.
false Prevent the underline.

The property is read/write with no default value.

Example

The following example will 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>
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