Discussion.
Taken from Gesing and Schneider, p. 152.
This uses an alert box to display two
properties of the navigator object.
Please note:
- The "onLoad" condition is set in the HTML BODY
tag to invoke a short script named "navShow()".
- The "navShow()" script just writes two properties
of The browser object.
- The browser name is in the "appName" property.
- The browser version number and platform is in
the "appVersion" property.
- By itself this is not very useful except to
show that the information is retrievable.
It could be used to control execution of
other script code. Heinle, p.96 shows an
example of this.
|