JavaScript Reference/Javascript Methods/sup
"sup()" Example
<html>
<body>
<button onclick="var myS = new String("Sample String");
document.write("regular string"+myS.sup());">
sup me</button>
</body>
</html>
"sup()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"sup()" Syntax Parameters and Note
Note:
Display a string as superscript text.
Syntax:
stringName.sup()