properties

This section describes the properties supported by the Diagnostics Engine.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.
 

In this section

TopicDescription

accuracy

Get or set the accuracy of the longitude and latitude properties in meters.

activeInBlock

Returns whether a single property in the case of multiple values is active (hasn't been overwritten, overridden by a !important value, or disabled) or not.

all

Returns a list of objects representing the available defined user agent (UA) strings for selection.

altitude

Gets or sets altitude in GeoLocation.

altitudeAccuracy

Sets or gets the current altitude accuracy of GeoLocation.

alwaysRefreshFromServer

Forces Windows Internet Explorer to bypass caches.

browser

Provides an instance of the DiagnosticsBrowser object.

browserMode

Returns the browser mode.

column

Returns the column number, or character position of the location in the source file.

cookies

Returns cookies for an object.

current

Sets or gets the currently active user agent (UA) string.

defaultDocumentMode

Returns the default document mode for the browser.

diagnostics

Provides an explicit way to access the global scope of diagnostics.

diagnostics (WebWorker)

Returns an object used to communicate with the parent Diagnostics Object Model.

document

Provides access the current document.

documentMode

Returns the current document mode.

documentModeOverride

Gets or sets the document-mode emulation state.

dom

Returns an object that provides a bridge from the Diagnostics DOM to the page's public DOM for access to an element's inner and outer HTML.

domain

The domain for a cookie.

elementSelectionEventsEnabled

Sets or gets the firing of the selectElement and hoverElement events.

emulation

Returns an instance of the DiagnosticsEmulation object.

enabled

Gets or sets whether a property has been enabled or disabled by the tools.

expires

Set or get a date indicating when the cookie expires.

external

Provides an instance of the DiagnosticsHost interface.

fileURI

Returns the file URI or path for a source file.

forceEdgeModeDocumentFamily

Sets or gets whether document mode is forced to be edge.

geoLocation

Returns the geoLocation emulation object.

heightInPx

Sets or gets height of viewport in pixels.

httpOnly

Gets or sets whether a cookie is accessible from Javascript or not (i.e. accessible from javascript).

id

See id.

id

Returns the id for a web worker.

important

Sets or gets whether or not the property is !important.

indexedDB

Returns an instance of DiagnosticsIndexedDB.

line

Returns the line number portion of the location in the source file.

localStorage

Returns an instance of DiagnosticsStorage associated with local storage.

longhands

For shorthand properties, this provides a list of child properties.

memory

Returns an instance of DiagnosticsMemoryProfiler.

memoryProfileHeapSize

Returns the memoryProfile heap size in bytes.

name

Returns the name of the cookie.

orientation

Gets or sets whether viewport is portrait or landscape mode.

path

The path of the cookie.

processPointerSize

Returns the process's pointer size.

processPrivateBytes

Gets the processes private bytes metric.

propertyName

Returns the name of the property.

quotaLimiting

Sets or gets whether quota limiting is used.

resources

Returns an instance of the DiagnosticsResources object.

secure

Returns whether a cookie is a secure cookie or not.

self

Returns a reference to the WebWorkerDiagnostics global scope

session

Returns whether a cookie is a session cookie or not.

sessionStorage

Returns an instance of DiagnosticsStorage associated with session storage.

size

Returns the size of the local or session storage.

size (indexedDB)

Returns the size of IndexedDB quota.

speed

Get or set speed of device in meters per second.

status

Returns whether the property is valid, invalid, or unrecognized.

styles

Returns an object that allows CSS styles to be queried and turned on and off on specific elements.

userAgentStringManager

Gets the DiagnosticsUserAgentStringManager object.

value

See value

value

The value of the property.

viewport

Returns the viewport emulation object.

widthInPx

Sets or gets width of viewport in pixels.

worker

Returns a WebWorkerDiagnosticsWorker object that's used to access the WorkerGlobalScope.

worker (WebWorkerDiagnosticsWorker)

Returns a WorkerGlobalScope object.

workers

Returns an object where the keys are the ids of the currently running webworkers and the values are instances of DiagnosticsWebWorker.

workerStartupScript

Gets or sets the worker startup script.

 

 

 

Show: