Window.external

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

Window API 的 external 属性返回一个 External 接口的实例, 这个接口应该包含一些向浏览器添加外部搜索提供者( external search providers )相关的函数。但是现在这个属性已经被废弃,并且这些函数现在都是空函数(至少在一些浏览器中是这样的),不做任何功能,仅为了符合标准。

方法

External 对象有以下方法:

方法 描述
AddSearchProvider() 空函数
IsSearchProviderInstalled() 空函数

Specifications

Specification Status
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 YesFirefox Full support YesIE ? Opera Full support YesSafari ? WebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
AddSearchProvider
Deprecated
Chrome Full support 54Edge ? Firefox Full support YesIE ? Opera Full support 41Safari ? WebView Android Full support 54Chrome Android Full support 54Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
IsSearchProviderInstalled
Deprecated
Chrome Full support 54Edge ? Firefox Full support YesIE ? Opera Full support 41Safari ? WebView Android Full support 54Chrome Android Full support 54Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.