Description of code:
var string = new String('Roseindia Technologies');
Above lines of code creates a string variable and we will be creating link for this string.
Above line of code will create a link like that <A HREF="http://www.roseindia.net">RoseIndia Technologies</A>. Here is the full example code for the link method example as given below:
Click on the button "create a link of RoseIndia" to create link .
Given below is the link from where you can download the full source code.