HTMLIsIndexElement

已废弃
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.


HTMLIsIndexElement接口提供了特殊的属性(除了常规的HTMLElement接口之外,它还可以通过继承获得)来操作<isindex>元素。
<isindex>元素在HTML4中已被弃用,在HTML5中已被删除此最新规范要求此元素实现 HTMLUnknownElement,而不是HTMLIsIndexElement

属性

Inherits properties from its parent, HTMLElement.

HTMLIsIndexElement.form 只读
Is a HTMLFormElement representing the <form> element it belongs too. It can have the null value, if <isindex> isn't part of any form.
HTMLIsIndexElement.prompt
Is a DOMString representing a text to be prompted for the field.

方法

No specific method; inherits methods from its parent, HTMLElement.

规范

Specification Status Comment
HTML Living Standard
HTMLIsIndexElement
Living Standard No change from HTML5.
HTML5
HTMLIsIndexElement
Recommendation Removed. <isindex> must now implement HTMLUnknownElement.
Document Object Model (DOM) Level 2 HTML Specification
HTMLIsIndexElement
Obsolete No change from Document Object Model (DOM) Level 1 Specification
Document Object Model (DOM) Level 1 Specification
HTMLIsIndexElement
Obsolete Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLIsIndexElement
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
form
Deprecated
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
prompt
Deprecated
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

No support  
No support
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

参见

  • The HTML element <isindex> was implementing this interface.