link() in JavaScript

<script language="JavaScript">
    <!--
    var myString = new String("The online book!");

    document.write(myString.link('http://www.java2s.com'));

    document.close();

    -->
    </script>