次の方法で共有


DiagnosticsEmulation object

Provides an interface to methods and properties on the emulation object.

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

 

 

Syntax

var oEmulation = oGlobalScope.emulation;

DOM Information

Inheritance Hierarchy

The DiagnosticsEmulation does not inherit from any class or interface.

Members

The DiagnosticsEmulation object has these types of members:

  • Methods
  • Properties

Methods

The DiagnosticsEmulation object has these methods.

Method Description
getActiveStyling

Returns whether a passed element is currently active.

getFocusStyling

Returns whether a passed element is currently in focus.

getHoverStyling

Returns whether a passed element currently is in a hover state.

getLinkStyling

Returns whether a passed element is in a link state with associated CSS styling.

getVisitedStyling

Returns whether a passed element is in a visited state.

setActiveStyling

Sets a passed element to an active state.

setBrowserMode

Sets the browser mode.

setFocusStyling

Sets an element to a focused state.

setHoverStyling

Sets a passed element to a hovered state.

setLinkStyling

Sets a passed element to a link state with associated CSS styling.

setVisitedStyling

Sets whether a passed element is currently in a visited state.

 

Properties

The DiagnosticsEmulation object has these properties.

Property Access type Description

geoLocation

Read-only

Returns the geoLocation emulation object.

userAgentStringManager

Read-only

Gets the DiagnosticsUserAgentStringManager object.

viewport

Read-only

Returns the viewport emulation object.