0

I'd would like in a form with an input control, that the first autocomplete value is visible in the textbox instead of a blank field.

Is it possible in javascript ?

Thanks a lot

3
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by tgreer
0

'this what you need?

<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
function insertvalue()
{
document.formname.sometext.value = "default value";
}
</SCRIPT>
</HEAD>

<BODY BGCOLOR="#FFFFFF" onload="insertvalue()">

<FORM NAME="formname">
<INPUT TYPE="text" NAME="sometext">
</FORM>
</BODY>
</HTML>
0

Thank for you replly but ...
No no,
I'd like to put in the box the first value available with autocomplete.
You know, when you click on a box if your autocomplete is turned on, the browser propose you the stored values in a list.
Thanks

As I search for it I only found a solution in VB with sendkeys function.
But I'd prefer in Java, asp (don't think a server-side could do it), or html.

0

The "autocomplete" is an often very annoying and disruptive "feature" of a particular browser or browser plug-in (like the Google Toolbar). As far as I know, a standardized autocomplete was never made part of the JavaScript DOM, so you can't do what you're trying to do.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.