JavaScript Reference/Javascript Methods/link

Материал из Web эксперт
Перейти к: навигация, поиск

"link()" Example

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



"link()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |String                                                        |
+----------------+--------------------------------------------------------------+



"link()" Syntax, Parameters and Note

Note:
Creates an <a>.
    
Syntax:
    
stringName.link(param1)
Parameters:
    param1   Required; the URL.