过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

摘要

<isindex> was an obsolete HTML element that put a text field in a page for querying the document. <isindex> provided a single line text input for entering a query string. When sent, the server would return a list of pages matching the query. Its support depended on both the browser and the server to react to the query.

<isindex> is removed HTML Standard . It was deprecated in HTML 4.01. The same behaviour can be achieved with an HTML form. All major browsers have now removed <isindex> .

属性

Like all other HTML elements, this element accepted the 全局属性 .

prompt

This attribute added its value as a prompt for text field.

action

This attribute determined the server URL to which the query was sent.

范例

<head>
  <isindex prompt="Search Document..." action="/search">
</head>
					

In past browsers, this would generate, at parse time, a DOM tree equivalent to the following HTML:

<form action="/search">
  <hr>
  <label>
    Search Document...
    <input name="isindex">
  </label>
  <hr>
</form>
					

历史

On June 1992, Dan Connolly would prefer a different anchor type instead of isindex.

On November 1992, indexes as links rather than documents started by Dan Connolly who is pushing the idea that indexes are more links than documents. In this thread, different type of solutions are proposed. The question of forms for making queries is mentioned in reference to Dynatext browser: "The browser displays toggle buttons, text fields etc. The user fills in the fields, clicks OK, and the query results come up in the table of contents window."

A thread about isindex in November 1992, Kevin Hoadley questioned the need for an isindex element and proposed to drop it. He proposed to have instead an input element (idea supported by Steve Putz). Tim Berners-Lee explains the purpose of isindex resulting in aggregated search results. Kevin replies that he doesn't like the boolean nature of isindex and would prefer a system where everything is searchable and proposes to extend the current WWW Framework with a specific httpd configuration and defined that some URIs mapping create search queries.

In 2016, after it was removed from Edge and Chrome, it was proposed to remove isindex from the standard; this removal was completed the next day, after which Safari and Firefox also removed support.

HTML 参考

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
isindex 弃用 Chrome 不支持 No Edge 不支持 No Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No
action 弃用 Chrome 不支持 No Edge 不支持 No Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No
prompt 弃用 Chrome 不支持 No Edge 不支持 No Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No

图例

不支持

不支持

弃用。不要用于新网站。

弃用。不要用于新网站。

另请参阅

元数据

  • 最后修改: