HTML DOM Underline Object
Underline Object
The Underline object represents an HTML <u> element.
Access an Underline Object
You can access a <u> element by using getElementById():
var x = document.getElementById("myU");
Try it
Create an Underline Object
You can create a <u> element by using the document.createElement() method:
var x = document.createElement("U");
Try it
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