|
14 System functions
JavaScript can access information from several areas on the user PC. This data may
be placed
in
a form which can then be transmitted across the Internet to a server
:
Navigator
The navigator object, which represents the browser, has properties which JavaScript can access
:
appCodeName code name under which browser was developed
appName name of browser
appVersion version number of the browser
cookieEnabled readonly property to determine
if
browser will allow cookies to be written
Language language of browser (Netscape)
userLanguage language of browser (Internet Explorer)
mimeTypes array of all MIME types known to client
's computer
platform type of OS platform
:
WIN, MAC, LIN
plugins array of all the plug
-
ins that are installed
in
the client
's web browser
userAgent typically appCodeName
/
appVersion, but may have other
undefined
text content
Cookies
If cookies are enabled on the user PC, JavaScript can write a cookie. In addition to the
information above, it can contain any information that the user has typed into input elements
on the page.
|