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