Mega Code Archive

 
Categories / JavaScript DHTML / Data Type
 

Create anchor from a string

<html> <body> <button onclick="var myS = new String('Sample String');          alert(myS.anchor('myAnchor'));"> string: ANCHOR </button>