• JavaScript Video Tutorials

JavaScript String - blink() Method



Description

This method causes a string to blink as if it were in a BLINK tag.

Syntax

The syntax for blink() method is as follows −

string.blink( )

Return Value

Returns the string with <blink> tag.

Example

Try the following example.

<html>
   <head>
      <title>JavaScript String blink() Method</title>
   </head>
   
   <body>   
      <script type = "text/javascript">
         var str = new String("Hello world");
         alert(str.blink());
      </script>      
   </body>
</html>

Output

<blink>Hello world</blink>
javascript_strings_object.htm
Advertisements