Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

String blink() Method in Javascript

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

Syntax:

string.blink()

Note: This method has been DEPRECATED and is no longer recommended.

Parameter Values: This method does not accept any parameters.

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

JavaScript Version: JavaScript 1.0

Example 1: In this example, we can see the blink() method created a string that contains a <blink></blink> tag.

html




<button onclick="blinkMethod()">Click here</button>
<script>
    function blinkMethod(){
        var simpleString="GeeksForGeeks";
        window.alert(simpleString.blink());
    }
</script>


Output:

String blink() Method

Example 2: In this example, we can see the blink() method created a string that contains a <blink></blink> tag.

javascript




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


Output:

<blink>GeeksForGeeks</blink>

We have a complete list of Javascript String Methods, to check those please go through the Javascript String Complete Reference article.

Supported Browser:

  • Internet Explorer
  • Firefox
  • Google Chrome
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Last Updated : 09 Jan, 2023
Like Article
Save Article
Similar Reads
Related Tutorials