JavaScript blink()Method
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
![]()
![]()
![]()
![]()
![]()
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>
var str = "Hello world!";
document.write(str.blink());
</script>
Try it yourself »
JavaScript String Object Other Extensions