HTMLIFrameElement.setActive()

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The setActive() method of the HTMLIFrameElement sets the current <iframe> as the active frame, which has an effect on how it is prioritized by the process manager.

Syntax

instanceOfHTMLIframeElement.setActive(boolean);

Returns

Void.

Parameters

boolean
A Boolean that indicates whether the iframe is to be the active frame (true) or not (false).

Example

var browser = document.querySelector('iframe');
browser.setActive();

Specification

Not part of any specification.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No No471 No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No No No No No ?

1. Supported in chrome code only.

See also

ドキュメントのタグと貢献者

このページの貢献者: fscholz, chrisdavidmills
最終更新者: fscholz,