blink()

The blink() method is used to display the contents of the given string, blinking. The face of the chosen font within the document is not specified using this method. The outputted text is treated as though it is encompassed within the opening and closing HTML tags.

syntax:

stringName.blink()

EXAMPLE

var blinkingText = new String("This text is blinking");

document.write(blinkingText.blink() )

The example shows the creation of a new string called blinkingText. The document.write statement is then used to write the contents of blinkingText to the screen utilizing the blink() method to display the text as blinking, in the face of the font chosen within the browser.