![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create a blink text using JavaScript?
To create a blinking text, use the JavaScript blink() method. This method causes a string to blink as if it were in a BLINK tag.
Note − HTML <blink> tag deprecated and is not expected to work in every browser.
Example
You can try to run the following code to create a blinking text with the JavaScript blink() method −
<html> <head> <title>JavaScript String blink() Method</title> </head> <body> <script> var str = new String("Demo Text"); document.write(str.blink()); document.write("<br><br> Note: HTML <blink> tag deprecated and is not expected to work in every browser.") </script> </body> </html>
Advertisements