Javascript examples for String:blink
The blink() method is used to display a blinking string.
This method returns the string embedded in the <blink> tag, like this: <blink>string</blink>
None.
A string embedded in the <blink> tag
The following code shows how to Display a blinking text:
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {// w w w. j a v a2 s .c o m var str = "Hello World!"; var result = str.blink(); document.getElementById("demo").innerHTML = result; } </script> </body> </html>