10.02.2018 Views

js_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Javascript<br />

<br />

JavaScript String italics() Method<br />

<br />

<br />

<br />

var str = new String("Hello world");<br />

alert(str.italics( ));<br />

<br />

<br />

<br />

Output<br />

Hello world<br />

link ()<br />

This method creates an HTML hypertext link that requests another URL.<br />

Syntax<br />

The syntax for link() method is as follows:<br />

string.link ( hrefname )<br />

Attribute Details<br />

hrefname: Any string that specifies the HREF of the A tag; it should be a valid<br />

URL.<br />

Return Value<br />

Returns the string with tag.<br />

Example<br />

Try the following example.<br />

<br />

171

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!