Latest web development tutorials

JavaScript blink () method

String Object Reference JavaScript String Object

Definition and Usage

blink () method is used to display a string of flashing.

This method returns a string plus <blink> tag, as follows:

<Blink> string </ blink>

grammar

string.blink()


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

At present, only Firefox and Opera browsers support blink () method. Internet Explorer, Chrome, and Safari do not support the blink () method.


Examples

Examples

Display flashing string:

<script>

var str = "Hello world!";
document.write(str.blink());

</script>

try it"


String Object Reference JavaScript String Object