Copyright ©

Javascript String - link() Method

previous next



This method creates an HTML hypertext link that requests another URL.

Syntax: hrefname )

Here is the detail of parameters:

Return Value:


<title>JavaScript String link() Method</title>
<script type="text/javascript">

var str = new String("Hello world");
var URL = "";

alert( URL ));


This will produce following result:

<a href="">Hello world</a>

To understand it in better way you can Try it yourself.

previous next

Copyright ©