Window.external

已废弃
该特性已经从 Web 标准中删除,虽然一些浏览器目前仍然支持它,但也许会在未来的某个时间停止支持,请尽量不要使用该特性。

Window API 的 external 属性返回一个 External 接口的实例,这个接口本来用于包含一些用来向浏览器添加外部搜索提供者(external search providers)的函数,但是,现在这个属性已被废弃,其中的函数现在都是空函数,无任何功能,仅为了符合规范而存在。

方法

External 对象有以下方法:

方法 描述
AddSearchProvider(descriptionURL) 空函数,无任何作用。参见 Autodiscovery of search plugins
IsSearchProviderInstalled() 空函数,无任何作用。

规范

规范 状态
HTML Living Standard
External
Living Standard

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
external
Deprecated
Chrome Full support YesEdge Full support 12Firefox Full support 2
Notes
Full support 2
Notes
Notes From Firefox 78 AddSearchProvider() does nothing, as the specification requires.
IE Full support 4Opera Full support 15Safari No support NoWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4
Notes
Full support 4
Notes
Notes From Firefox for Android 79 AddSearchProvider() does nothing, as the specification requires.
Opera Android Full support 14Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
See implementation notes.
See implementation notes.