JavaScript blink()Method

String 对象参考手册JavaScript String Object

Definition and Usage

The blink() method is used to display flashing strings.

This method returns the string wrapped in a <blink> tag, as follows:

<blink>string</blink>

Syntax

string.blink()


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Example

Example

Display a flashing string:

<script>

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

</script>

Try it yourself »


String 对象参考手册JavaScript String Object Other Extensions