JavaScript tutorial:
blink method

 

Applies to: String Object

The blink method places HTML <BLINK> tags around text in a String object.

Syntax

strVariable.blink( )
"String Literal".blink( )

Return value

None

Example

The following example demonstrates how the blink method works:

<HTML>
<HEAD>
<SCRIPT language="javaScript" >
function blinkTag()
{
var strVariable = "This is a blink text";
strVariable = strVariable.blink( );
return strVariable;
}
</SCRIPT>
</HEAD>
<P>See how it work in htm
<BODY>
<SCRIPT LANGUAGE= "JAVASCRIPT">
document.write(blinkTag());
</SCRIPT>
</BODY></HTML>

To run the code, paste it into JavaScript Editor, save as htm file format and click the Show Internal View button.

See also: String Object methods, String Object Properties