EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

navigator object

Contains information about the client.

Members

The navigator object has these types of members:

Methods

The navigator object has these methods.

MethodDescription
confirmSiteSpecificTrackingException

Indicates whether an exception exists for a given domain.

confirmWebWideTrackingException

Indicates whether an exception exists for services from a given domain.

getGamepads

Returns an array of gamepad objects that describe the state of each active gamepad device.

javaEnabled

Returns whether Java is enabled.

msLaunchUri

This method is used to start a service or app, such as an email client, that handles a given protocol. The URI contains the protocol for the default service or app, such as mailto://john@contoso.com.

msSaveBlob

Saves the File or Blob to disk.

msSaveOrOpenBlob

Launches the associated application for a File or Blob.

removeSiteSpecificTrackingException

Removes a previously-granted tracking exception for a domain.

removeWebWideTrackingException

Removes a previously-granted tracking exception for a service host.

storeSiteSpecificTrackingException

Requests an exemption to the "Do not Track" (DNT) rule for a given website.

storeWebWideTrackingException

Requests an exemption to the "Do not Track" (DNT) rule for services used by other websites.

taintEnabled

Returns whether data tainting is enabled.

 

Properties

The navigator object has these properties.

PropertyAccess typeDescription

appCodeName

Retrieves the code name.

appMinorVersion

Retrieves the application's minor version value.

appName

Retrieves the name of the client.

appVersion

Retrieves the platform and version of the application.

browserLanguage

Retrieves the current operating system language.

Note  This property does not indicate the language or languages set by the user in Language Preferences, located in the Internet Options dialog box.

cookieEnabled

Retrieves whether client-side persistent cookies are enabled. Persistent cookies are those that are stored on the client-side computer.

cpuClass

Retrieves a string denoting the CPU class.

geolocation

Gets a reference to a geolocation object, which reports the geographic location of the device running the application.

maxTouchPoints

Read-only

The maximum number of simultaneous touch contacts supported by the device.

msDoNotTrack

Returns a String indicating whether the user set a preference not to be tracked .

msManipulationViewsEnabled

Read-only

Returns whether manipulation feature support is available, such as touch panning and zooming using CSS rules.

onLine

Retrieves a value indicating whether the system is online.

platform

Retrieves the name of the user's operating system.

plugins

Provides information about registered plug-ins.

pointerEnabled

Read-only

Deprecated. Indicates if pointer events are fired for pointing input.

product

Read-only

Returns the product token associated with a user-agent.

systemLanguage

Retrieves the default language used by the operating system.

userAgent

Retrieves a string equivalent to the HTTP user-agent request header.

userLanguage

Retrieves the operating system's natural language setting.

 

Standards information

There are no standards that apply here.

Remarks

Windows Internet Explorer 9. The geolocation property is only supported for webpages displayed in IE9 Standards mode. For more information, see Defining Document Compatibility.

 

 

Показ:
© 2014 Microsoft