You are here: Reference > HTML > attributes > prompt (isindex)

prompt attribute (isindex)

Browser support:
Specifies a prompt message for the input field.
The isIndex element and all of its attributes are deprecated. Use the input:text element instead.
JavaScript page for this attribute: prompt. You can find other example(s) there.

Possible values:

String that sets the prompt message.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the prompt attribute:
<isindex id="myIsIndex" prompt="Enter your search phrase: "/>
Did you find this example helpful? yes no

Example HTML code 2:

<hr />
Enter your search phrase: <input type="text" />
<hr />
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content