August 1999
Intermediate to advanced
1488 pages
72h 53m
English
string.blink()
The blink() method will convert the string it is called on to an instance of the <blink> tag. This method is only supported in Netscape Navigator, because it is the only browser that has an implementation of the <blink> tag.
Listing 6.231 creates an instance of the String object and uses the document.write() method to write the tag to the page. The results of running this script will be the following:
<blink>Hello, World!</blink>
<script language="JavaScript"> <!–– Hide // Create an instance of the String object var myString = new String("Hello, World!"); // Write the string to the page after ... |
Read now
Unlock full access