JavaScript String Object
The sup() method is used to display a string as superscript text.
This method returns the string embedded in the <sup> tag, like this:
<sup>string</sup>
![]()
The sup() method is supported in all major browsers.
Display string as superscript text:
JavaScript String Object
Your message has been sent to W3Schools.