10.02.2018 Views

js_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Javascript<br />

blink ()<br />

This method causes a string to blink as if it were in a BLINK tag.<br />

Syntax<br />

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

string.blink( )<br />

Return Value<br />

Returns the string having tag.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript String blink() Method<br />

<br />

<br />

<br />

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

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

<br />

<br />

<br />

Output<br />

Hello world<br />

bold ()<br />

This method causes a string to be displayed as bold as if it were in a tag.<br />

Syntax<br />

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

166

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

Saved successfully!

Ooh no, something went wrong!