String sub() Example
<html> <body> <button onclick="var myS = new String('www.java2s.com'); document.write('regular string'+myS.sub());"> String sub </button> </body> </html>