Page 134 - DCAP202_Fundamentals of Web Programming
P. 134
Unit 10: Browser Objects
Notes
!
Caution It cannot be created by user. It is automatically created by the javascript runtime
engine.
10.2.1 Navigator Objects – Properties
Name Description Version
Implemented in
appCodeName Specifies the code name of the browser.
JavaScript 1.0
Implemented in
appName Specifies the name of the browser.
JavaScript 1.0
Implemented in
appVersion Specifies version information for the Navigator.
JavaScript 1.0
Implemented in
language Indicates the translation of the Navigator being used.
JavaScript 1.2
Implemented in
mimeTypes An array of all MIME types supported by the client.
JavaScript 1.1
Indicates the machine type for which the Navigator Implemented in
platform
was compiled. JavaScript 1.2
An array of all plug-ins currently installed on the Implemented in
plugins
client. JavaScript 1.1
Implemented in
userAgent Specifies the user-agent header.
JavaScript 1.0
10.2.2 Navigator Objects – Methods
Name Description Version
javaEnabled Tests whether Java is enabled. Implemented in JavaScript 1.1
taintEnabled Specifies whether data tainting is enabled. Implemented in JavaScript 1.1
Self Assessment
Fill in the blanks:
4. ........................... contains information about the version, mimetype and what plug-ins
users have installed of Navigator in use.
5. ........................... property specifies version information for the Navigator.
6. ........................... property tests whether Java is enabled.
10.3 History Objects
The JavaScript History Object is property of the window object.
10.3.1 History Objects – Properties
The JavaScript history object contains the following properties:
current - The current document URL.
length - The number of entries in the history object.
LOVELY PROFESSIONAL UNIVERSITY 127