You are here: Reference > JavaScript > client-side > browser > properties

Browser related properties in JavaScript

General browser information properties:
Property Support Description
appCodeName
(clientInformation, navigator)
Retrieves the code name of the browser.
appMinorVersion
(clientInformation, navigator)
Returns the minor version of the browser.
appName
(clientInformation, navigator)
Returns the name of the browser.
appVersion
(clientInformation, navigator)
Returns the platform and version of the browser.
buildID
(navigator)
Retrieves the build identifier of the browser.
clientInformation
(window)
Contains information about the browser and the operating system of the user.
clipboardData
(window)
Allows access to the data placed on the system clipboard.
cpuClass
(clientInformation, navigator)
Returns the central processing unit (CPU) class of the user's operating system.
enabledPlugin
(mimeType)
Returns a plugin object that contains information about the plug-in that is set to handle the data of the current MIME type.
enableSmartCardEvents
(crypto)
Sets or retrieves a Boolean value that indicates whether the document recieves SmartCard events.
onLine
(clientInformation, navigator)
Returns a Boolean value that indicates whether the browser is working online.
oscpu
(navigator)
Returns a string that contains information about the user's operating system and the central processing unit (CPU).
platform
(clientInformation, navigator)
Returns the name of the operating system platform.
product
(clientInformation, navigator)
Returns a string that contains information about the browser engine.
productSub
(clientInformation, navigator)
Returns a string that contains information about the development build number of the browser engine.
userAgent
(clientInformation, navigator)
Returns a string value that represents the user-agent header.
vendor
(clientInformation, navigator)
Returns a string that specifies the name of the browser vendor.
vendorSub
(clientInformation, navigator)
Returns a string that specifies the version number of the browser given by the vendor.
version
(crypto)
Returns a string that specifies the version number of the crypto object.
Screen and browser dimension properties:
Property Support Description
availHeight
(screen)
Returns the height of the area on the screen that is available for application windows.
availLeft
(screen)
Returns the left side of the area on the screen that is available for application windows.
availTop
(screen)
Returns the top side of the area on the screen that is available for application windows.
availWidth
(screen)
Returns the width of the area on the screen that is available for application windows.
fullScreen
(window)
3
Specifies or retrieves whether the browser application is in full-screen mode or not.
height
(screen)
Returns the vertical resolution of the display screen, in pixels.
left
(screen)
Retrieves the horizontal offset of top-left corner of the current screen relative to the top-left corner of the main screen, in pixels.
outerHeight
(window)
9
Sets or retrieves the total height of the browser window, including toolbars and scrollbars.
outerWidth
(window)
9
Sets or retrieves the total width of the browser window, including toolbars and scrollbars.
screenLeft
(window)
Returns an integer value that indicates the horizontal position of the left side of the browser's client area, relative to the left side of the screen.
screenTop
(window)
Returns an integer value that indicates the vertical position of the top side of the browser's client area, relative to the top side of the screen.
screenX
(window)
9
Returns an integer value that indicates the horizontal position of the left side of the browser window, relative to the left side of the screen.
screenY
(window)
9
Returns an integer value that indicates the vertical position of the top side of the browser window, relative to the top side of the screen.
top
(screen)
Retrieves the vertical offset of the top-left corner of the current screen relative to the top-left corner of the main screen, in pixels.
width
(screen)
Returns the horizontal resolution of the display screen, in pixels.
Display information properties:
Property Support Description
bufferDepth
(screen)
Sets or retrieves the number of bits used to represent the color of a single pixel in the off-screen bitmap buffer.
colorDepth
(screen)
Retrieves the number of bits used to represent the color of a single pixel on the screen or in the buffer when off-screen buffering is allowed.
deviceXDPI
(screen)
Returns the current number of dots per inch (DPI) of the document's viewport along the horizontal (x) axis.
deviceYDPI
(screen)
Returns the current number of dots per inch (DPI) of the document's viewport along the vertical (y) axis.
logicalXDPI
(screen)
Returns the number of dots per inch (DPI) of the document's viewport along the horizontal (x) axis at normal zoom level.
logicalYDPI
(screen)
Returns the number of dots per inch (DPI) of the document's viewport along the vertical (y) axis at normal zoom level.
pixelDepth
(screen)
9
Retrieves the number of bits used to represent the color of a single pixel on the screen or in the buffer when off-screen buffering is allowed.
systemXDPI
(screen)
8
Returns the number of dots per inch (DPI) of the display screen along the horizontal (x) axis at normal zoom level.
systemYDPI
(screen)
8
Returns the number of dots per inch (DPI) of the display screen along the horizontal (x) axis at normal zoom level.
Language properties:
Property Support Description
browserLanguage
(clientInformation, navigator)
Returns the language of the browser application or the operating system's user interface.
language
(clientInformation, navigator)
Returns the language of the browser application.
systemLanguage
(clientInformation, navigator)
Returns the language edition of the operating system.
userLanguage
(clientInformation, navigator)
Returns the current Regional and Language settings of the operating system in Internet Explorer and the language of the browser application in Opera.
MIME type properties:
Property Support Description
description
(mimeType)
Returns a long description of the current MIME type.
length
(mimeTypes)
Returns an integer that specifies the number of objects in the current collection.
plugins
(clientInformation, navigator)
Represents a collection of all installed plugins in the browser.
suffixes
(mimeType)
Returns a string value that contains a comma separated list of possible file extensions for the current MIME type.
type
(mimeType)
Returns the name of the current MIME type.
History properties:
Property Support Description
current
(history)
Returns the URL of the current document in the history array.
history
(window)
Provides access to the browser history that contains the URLs of visited pages.
length
(history)
Returns the number of entries in the history list of the current browser window.
navigationMode
(history)
Sets or retrieves the navigation type in the history.
next
(history)
Returns the URL of the next document in the history array.
previous
(history)
Returns the URL of the previous document in the history array.
Component properties:
Property Support Description
classes
(Components)
Returns a read-only object through which the registered component classes are accessible by ContractID (contract identifier).
classesByID
(Components)
Returns a read-only object through which the registered component classes are accessible by ClassID (class identifier).
interfaces
(Components)
Returns a read-only object through which interfaces are accessible by name.
interfacesByID
(Components)
Returns a read-only object through which interfaces are accessible by IID (interface identifier).
lastResult
(Components)
Returns an integer that represents the result of the most recent XPCOM method call.
manager
(Components)
Returns a reference to the global component manager service.
results
(Components)
Returns a read-only object through which the known result codes are accessible by name.
returnCode
(Components)
Returns an integer that represents the result of the current XPCOM method call.
stack
(Components)
Returns an object that represents the current JavaScript call stack.
Plugin properties:
Property Support Description
description
(plugin)
Returns the description supplied by the plugin manufacturer.
filename
(plugin)
Returns the file name of the current plugin with extension.
length
(plugin)
Returns an integer that specifies the number of associated MIME types.
length
(plugins)
Returns an integer that specifies the number of the installed plugins in the browser.
name
(plugin)
Returns the name of the plugin specified by the application manufacturer.
Additional properties:
Property Support Description
Components
(window)
Implements the XPConnect (Cross Platform Connect) technology that provides interaction between XPCOM (Cross Platform Component Object Model) and JavaScript.
cookie
(document)
Sets or retrieves the cookies stored for the current document.
cookieEnabled
(clientInformation, navigator)
Retrieves a Boolean value that indicates whether cookies are enabled in the browser.
defaultStatus
(window)
Sets or returns the default message in the status bar.
fontSmoothingEnabled
(screen)
Returns a Boolean value that indicates whether font smoothing is enabled.
frozen
(external)
Returns a Boolean value that indicates whether the document containing the current Scriptlet Component is ready to handle events.
menuArguments
(external)
Retrieves a reference to the window object that contains the context menu.
pkcs11
(window)
Retrieves a reference to the pkcs11 object. Use this object to install drivers or other software.
updateInterval
(screen)
Specifies or returns the time interval (in milliseconds) between screen updates.
utils
(Components)
Implements useful features for the XPConnect (Cross Platform Connect) technology.
visible
(locationbar, menubar, ...)
Sets or retrieves a Boolean value that indicates whether the current bar object is visible or not. This property is read-only in Google Chrome and Safari. In Firefox, the UniversalBrowserWrite privilege is required to modify the value of this property.
User Contributed Comments

Post Content

Post Content