How To Use String Object Blink In JavaScript
In this article I am going to explain about String Object Blink In JavaScript.
Use blink() method in JavaScript
If we want to display a string in a blinking then we can use a blink() method.
The <blink> tag is used to return a string in JavaScript, like this:
<blink>string</blink>.
The blink() method only works in Fire fox and Opera.
Syntax
Example
<!DOCTYPE html>
<html>
<body Style="background-color:red">
<p id="demo">Click here</p>
<button onclick="myFunction()">Try it</button>
<script type="text/javascript">
function myFunction()
{
var txt = "Blink:Hello World";
document.getElementById("demo").innerHTML = txt.blink();
}
</script>
</body>
</html>
|
Output1
Output2
When we click on button, text will blink
Further Readings
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here