Previous Example-|-Next Example-|-Return to Chapter Listing
Example 5.17:
Using typeof
[This example works with Netscape Navigator 3. It will work in most cases with Internet Explorer 3, but typeof in that browser cannot correctly identify the item in all cases.]
The typeof operator will tell you what sort of string, variable, method, function, keyword, object, or property you have.
In the HEAD we have this script:
In the BODY of the page we have this script:
Previous Example-|-Next Example-|-Return to Chapter Listing