Window:external 属性

已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。

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

实例方法

External 对象有以下方法:

方法 描述
AddSearchProvider(descriptionURL) 空函数;无任何作用。参见自动发现搜索插件
IsSearchProviderInstalled() 空函数;无任何作用。

规范

Specification
HTML
# external

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
external
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.
See implementation notes.
Uses a non-standard name.
Has more compatibility info.