Non-standard
Summary
Causes a string to blink as if it were in a BLINK tag.
Method of String |
|
|---|---|
| Implemented in | JavaScript 1.0 |
| ECMAScript Edition | none |
Syntax
String.blink()
Parameters
None.
Description
Use the blink method with the write or writeln methods to format and display a string in a document. In server-side JavaScript, use the write function to display the string.
Examples
Example: Using string methods to change the formatting of a string
The following example uses string methods to change the formatting of a string:
var worldString = "Hello, world"; document.write( worldString.blink() ); document.write( "<P>" + worldString.bold() ); document.write( "<P>" + worldString.italics() ); document.write( "<P>" + worldString.strike() );
This example produces the same output as the following HTML:
<BLINK>Hello, world</BLINK> <P><B>Hello, world</B> <P><I>Hello, world</I> <P><STRIKE>Hello, world</STRIKE>
See also
String.boldNon-standardString.italicsNon-standardString.strikeNon-standard
Mozilla Developer Network