Definition and Usage The sup() method is used to display a string as superscript. Syntax stringObject.sup() Example In this exampl...
Definition and Usage
The sup() method is used to display a string as superscript.Syntax
stringObject.sup() |
Example
In this example "Hello world!" will be displayed in superscript:<script type="text/javascript"> var str="Hello world!"; document.write(str.sup()); </script> |