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