In javascript, the sub() method displays the text/string in subscript ie. as if it were in the <sub> element. The general format is: string.sub(); Example: <script type="text/javascript"> var string="Bugs Bunny Here"; document.write(string.sub()); </script> The above will output: See Also: