'link()' Example : link « Javascript Methods « JavaScript Reference

'link()' Example

    
<html>
<body>
<button onclick="var myS = new String('Java2s.com Home Page'); 
                 alert(myS.link('http://www.java2s.com/'));">
                 create a link from </button>
</body>
</html>

    
      
      








Related examples in the same category

1.'link()' Syntax, Parameters and Note
2.'link()' is applied to