Share this page 

Blink textTag(s): HTML/CSS


The <BLINK> works only on Netscape browser, IE doesn't support it. One workaround is to use timer.
<body  onload="setInterval('blinkIt()',500)">

<script type="text/javascript">
function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}
</script>
<blink>Am i blinking ?</blink>

Here how it looks : Am i blinking ?

You can achive the same effect with some simple CSS but not all browsers will render the blinking (N7 ok, IE5 no) :

<style>
.super {text-decoration: blink; text-align: center}
</style>

<span class="super">Real's HowTo</span>

Here how it looks : Am i blinking ?