The uaexami.js help file
The navigator object
This script source file uses the function Exami to add a number of properties for the
navigator and navigator.examined objects.
Properties set by Exami( )
This function works with JavaScript from language version 1.1 browsers. It should be executed by
an event handler not before the document is fully loaded.
-
navigator.examined.nc4api
-
Returns a boolean value depending on compliance with Netscape proprietary
DOM using document.layers and navigator.kin being "Netscape/4"
-
navigator.examined.msieapi
-
Returns a boolean value depending on compliance with Microsoft proprietary
DOM using document.all and navigator.kin being "MSIE/4"
-
navigator.examined.w3cdom
-
Returns a boolean value depending on compliance with W3C industry
DOM standard using document.getElementById and also applying
document.getElementsByTagName and document.createElement
-
navigator.examined.domelementstyle
-
Returns a boolean value depending on compliance with W3C industry
DOM standard (as above) and applying
element.style
on an
element created by document.createElement
-
navigator.examined.domcreateevent
-
Returns a boolean value depending on compliance with W3C industry
DOM standard (as above) and applying document.createEvent
-
navigator.appCodeNameSub
-
Returns a version string representing the compatibility version. The property
is intentionally somewhat spoofable. Possible values:
-
undefined or null if navigator.appCodeName is not set
- an empty string if the browser is not using Mozilla as the
value of navigator.appCodeName
-
3.x (where "3.x" is a version string) JavaScript
version 1.1 browsers
-
4.x (where "4.x" is a version string) Fourth
generation DHTML browsers
-
5.x (where "5.x" is a version string) Fifth generation
browsers returning true for navigator.examined.ecma3 and
navigator.examined.w3cdom
-
navigator.product
-
This property is already set with a read-only value in some, notably Gecko, browsers as
"Gecko". The function will set the property to other browsers. Possible values:
-
Gecko
-
Trident
-
Netscape
-
KDE
-
Gecko_spoofer
-
Opera
-
Presto
-
Java
- an empty string
The envir object
Exami( )
is calling the Envir function if it's present in order to use it for the
creation of the envir object. If it's absent, which is the case if the uaenvir.js file isn't there or the browser wasn't allowed to read it, then it will
create envir with one property only.
-
envir.noenvir
-
The property indicates the absence of all other envir properties. The
boolean value is set to true if
Envir( )
is not
defined, hence no other properties of the envir object are defined.