Skip to content
Related Articles

Related Articles

String blink() Method in Javascript
  • Difficulty Level : Medium
  • Last Updated : 26 Aug, 2020

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:

filter_none

edit
close

play_arrow

link
brightness_4
code

.<!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>

chevron_right


Output:

Program 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


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

 

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :