Home Javascript JavaScript blink method
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

JavaScript blink method

Advertisement
Some times you need that some of the html text blinks on the browser again and again without using any kind of picture or image so to add this functionality with the JavaScript we can use simple blink() method.

JavaScript blink method

     

Some times you need that some of the html text blinks on the browser again and again without using any kind of picture or image so to add this functionality with the JavaScript we can use simple blink() method. We have used the method blink() of string. 

Syntax

 String_Object.blink();

Description of example

In this example we have created a simple html page and in JavaScript we have created a string object which contains the string "Welcome to Roseindia" , which will blink on the browser by calling the blink() method on the string's object.

blinkExample.html

<html>
	<head>
	<title>Javascript blink</title>
	<script>
		var str="Welcome to Roseindia";
		document.write(str.blink());
	</script>
	</head>
</html>

Output:

Download Source Code

     

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 29, 2009

Ask Questions?    Discuss: JavaScript blink method  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
Mirusha Adampulle
April 19, 2011
java

hi sir, pls help me to do my course work. i have to design a simple library system in java. i design some interface, but i dont know how to link them. pls forward me any simple library system with links or give me some ideas to do my coursework. thank you
DMCA.com