isindex element | isIndex object
[This documentation is preliminary and is subject to change.]
Causes the browser to display a dialog window that prompts the user for a single line of input.
This object is not supported for Metro style apps using JavaScript.
Standards information
- HTML 4.01 Specification, Section 17.8 (Deprecated)
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Members
The isIndex object has these types of members:
Methods
The isIndex object has these methods.
| Method | Description |
|---|---|
| addBehavior |
Attaches a behavior to the element. |
| applyElement |
Makes the element either a child or parent of another element. |
| blur |
Causes the element to lose focus and fires the onblur event. |
| clearAttributes |
Removes all attributes and values from the object. |
| click |
Simulates a click by causing the onclick event to fire. |
| componentFromPoint |
Returns the component located at the specified coordinates via certain events. |
| contains |
Checks whether the given element is contained within the object. |
| doScroll |
Simulates a click on a scroll bar component. |
| dragDrop |
Initiates a drag event. |
| focus |
Causes the element to receive the focus and executes the code specified by the onfocus event. |
| getBoundingClientRect |
Retrieves an object that specifies the bounds of a collection of TextRectangle objects. |
| getClientRects |
Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client. Each rectangle describes a single line. |
| getElementsByClassName |
Gets a collection of objects that are based on the value of the CLASS attribute. |
| hasAttributes |
Determines whether one or more attributes exist for the object. |
| msMatchesSelector |
Determines whether an object matches the specified selector. |
| replaceAdjacentText |
Replaces the text adjacent to the element. |
| setActive |
Sets the object as active without setting focus to the object. |
Properties
The isIndex object has these properties.
| Property | Description |
|---|---|
|
Sets or retrieves the access key for the object. | |
|
Sets or retrieves the URL to which the form content is sent for processing. | |
|
Specifies whether the element and its contents must be selected as a whole, indivisible unit. | |
|
Retrieves a collection of attributes of the object. | |
|
Gets a value indicating whether the object can contain child objects. | |
|
Retrieves the value indicating whether the object can contain rich HTML markup. | |
|
Sets or retrieves the class of the object. | |
|
Retrieves the height of the object including padding, but not including margin, border, or scroll bar. | |
|
Retrieves the distance between the offsetLeft property and the true left side of the client area. | |
|
Retrieves the distance between the offsetTop property and the true top of the client area. | |
|
Retrieves the width of the object including padding, but not including margin, border, or scroll bar. | |
|
Sets or retrieves the string that indicates whether the user can edit the content of the object. | |
|
Sets or gets the value that indicates whether the user can interact with the object. | |
|
Retrieves a reference to the form that the object is embedded in. | |
|
Sets or gets the value that indicates whether the object visibly shows that it has focus. | |
|
Sets or retrieves the string identifying the object. | |
|
Sets or retrieves the HTML between the start and end tags of the object. | |
|
Sets or retrieves the text between the start and end tags of the object. | |
|
Gets the value that indicates whether the user can edit the contents of the object. | |
|
Gets the value that indicates whether the user can interact with the object. | |
|
Retrieves the value indicating whether the content of the object contains one or more lines. | |
|
Sets or retrieves the language to use. | |
|
Sets or retrieves the language in which the current script is written. | |
|
Retrieves the height of the object relative to the layout or coordinate parent, as specified by the offsetParent property. | |
|
Retrieves a reference to the container object that defines the offsetTop and offsetLeft properties of the object. | |
|
Retrieves the width of the object relative to the layout or coordinate parent, as specified by the offsetParent property. | |
|
Sets or retrieves the object and its content in HTML. | |
|
Sets or retrieves the text of the object. | |
|
Retrieves the current state of the object. | |
|
Sets or retrieves the role for this element. | |
|
Retrieves the scrolling height of the object. | |
|
Sets or retrieves the distance between the left edge of the object and the leftmost portion of the content currently visible in the window. | |
|
Sets or retrieves the distance between the top of the object and the topmost portion of the content currently visible in the window. | |
|
Retrieves the scrolling width of the object. | |
|
Retrieves the ordinal position of the object, in source order, as the object appears in the document's all collection. | |
|
Sets an inline style for the element. | |
|
Sets or retrieves the index that defines the tab order for the object. | |
|
Retrieves the tag name of the object. | |
|
Sets or gets the URN specified in the namespace declaration. | |
|
Sets or retrieves advisory information (a ToolTip) for the object. | |
|
Retrieves the element's unique number. |
Remarks
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 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;
Examples
This example uses the ISINDEX element to replace the default prompt.
<ISINDEX PROMPT="Enter a keyword to search for in the index">
Build date: 3/8/2012