Skip to content
Related Articles

Related Articles

Improve Article

String blink() Method in Javascript

  • Difficulty Level : Medium
  • Last Updated : 26 Aug, 2020
Geek Week

This tutorial explains how to use Javascript blink() Method.

In Javascript, blink() method is a string method that is used to display a string inside the blink tag.

Syntax:

string.blink()

Parameter Values: None.

Return Values: It returns a string value with blink tag.



JavaScript Version: JavaScript 1.0

Program 1:




.<!DOCTYPE html>
<html>
<head>
<title>Blink Method</title>
</head>
<body>
  <button onclick="blinkMethod()">Click here</button>
    <script>
     function blinkMethod(){
         var simpleString="GeeksForGeeks";
           window.alert(simpleString.blink());
     }
      </script>
</body>
</html>

Output:

Program 2:




<script>
function func(){
var simpleString="GeeksForGeeks";
console.log(simpleString.blink());
}
func();
</script>

Output:

<blink>GeeksForGeeks</blink>

In previous program as you can see the blink() method created a string that contains a <blink></blink> tag.

Supported Browser:

  • Internet Explorer
  • Firefox
  • Google Chrome
  • Safari
  • Opera

 

Hey geek! The constant emerging technologies in the world of web development always keeps the excitement for this subject through the roof. But before you tackle the big projects, we suggest you start by learning the basics. Kickstart your web development journey by learning JS concepts with our JavaScript Course. Now at it’s lowest price ever!




My Personal Notes arrow_drop_up
Recommended Articles
Page :