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 link() Method<br />

<br />

<br />

<br />

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

var URL = "http://www.<strong>tutorial</strong>spoint.com";<br />

alert(str.link( URL ));<br />

<br />

<br />

<br />

Output<br />

Hello world<br />

small ()<br />

This method causes a string to be displayed in a small font, as if it were in a<br />

tag.<br />

Syntax<br />

Its syntax is as follows:<br />

string.small ( )<br />

Return Value<br />

Returns the string with tag.<br />

Example<br />

Try the following example.<br />

<br />

172

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

Saved successfully!

Ooh no, something went wrong!