HTML DOM Superscript Object

Superscript object

The Superscript object represents the HTML <sup> element.

Access the Superscript object

You can use getElementById() to access the <sup> element:

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

Try It Yourself

Create a Superscript object

You can use the document.createElement() method to create a <sup> element:

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

Try It Yourself

Standard Properties and Events

Superscript Object Supports StandardsPropertiesandEvents.

Related Pages

HTML Tutorial:HTML Text Formatting Elements

HTML Reference Manual:HTML <sup> Tag

JavaScript Reference Manual:HTML DOM Subscript Object