Javascript language

adplus-dvertising
blink() Method
Previous Home Next

How to use blink() Method in JavaScript

  • The blink() method is used to display a blinking string.
  • The blink() method only works in Firefox and Opera. It is not supported in
  • Internet Explorer, Chrome, or Safari.

Syntax:

string.blink()

Example:

<html>
<body>
<script language="javascript">
function win_blink()
{
var myString = new String('Am I blinking?'); 
document.write(myString.blink());
}
</script>
<button onclick="win_blink()">Blink</button>
</body>
</html>

Out Put:

Previous Home Next