JavaScript Reference/Javascript Methods/sup
Версия от 18:30, 25 мая 2010; (обсуждение)
"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()