<html> <body> <button onclick="var myS = new String('Sample String'); document.write('regular string'+myS.bold());">String: BOLD</button> </body> </html>