JavaScript sup() Method
JavaScript String object
Definition and Usage
The sup() method is used to display a string as a superscript.
This method returns a string with the tag added, as follows:
string
Syntax
string
.sup()
Browser support





All major browsers support the sup() method.
Example
Example
Display the text string as a superscript:
Try it »
JavaScript String object