HTML

1个成员

HTML元素 - isindex

发表于 2017-01-20 2985 次查看

定义

使浏览器显示一个对话框,提示用户输入单行文本。

Causes the browser to display a dialog window that prompts the user for a single line of input.

注释

在 HTML 4 中,此元素是不推荐使用的,推荐使用 INPUT 元素来取代它。isIndex 的 tagName 属性将返回 input。

ISINDEX 元素属于文档的 body 中。

此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。

此元素被看作 form 对象中的一个 input 对象。要使用脚本访问该元素,你必须使用 document 对象的 all 集合。例如,要访问一个 isIndex 对象的 disabled 属性的语法为:

document.all.oIsindex.disabled=false;

此元素是一个块元素。

此元素需要关闭标签。

In HTML 4, this element is deprecated; INPUT is recommended for use instead. The tagName property for isIndex returns input.

The ISINDEX element belongs in the body of the document.

This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

This element is treated as an input object inside a form object. To access the element from script, you must use the all collection of the document object. For example, the syntax for accessing the disabled property of a isIndex object is:

document.all.oIsindex.disabled=false;

This element is a block element.

This element requires a closing tag.

示例代码

<ISINDEX PROMPT="Enter a keyword to search for in the index">

标准信息

该对象已不建议使用,将可能在今后HTML标准中废弃。

This object is deprecated in HTML.

发表回复
你还没有登录,请先登录注册