HTML DOM Underline Object

The Underline object represents an HTML <u> element

Underline Object

The Underline object represents an HTML <u> element.

Access an Underline Object

You can access a <u> element by using getElementById():

Example

var x = document.getElementById("myU");

Create an Underline Object

You can create a <u> element by using the document.createElement() method:

Example

var x = document.createElement("U");

Standard Properties and Events

The Underline object supports the standard properties and events.

Related Pages

HTML tutorial: HTML Text Formatting Elements

HTML reference: HTML <u> tag