JavaScript Reference/Javascript Properties/autocomplete
Содержание
"autocomplete" Example
<source lang="javascript">
<html> <head> <script>
function function1() { document.all.myName.autocomplete = "on"; }
</script> </head> <body onLoad="function1();">
<form name="form1" method="post" action="">
1. Type your name in the text field. 2. Press "Submit" button. 3. Type the first letter of your name again. 4. Check the autofill feature.
<input type="text" size=30 name="text2" id="myName"> <input type="submit" value="Submit"> </form>
</body> </html>
</source>
"autocomplete" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<form> <input type="password"> | | |<input type="text"> | +----------------+--------------------------------------------------------------+
</source>
"autocomplete" Possible Values
<source lang="javascript">
Possible Values on off.
</source>
"autocomplete" Syntax and Note
<source lang="javascript">
Note: Read and write property. Sets form auto=filling.
Syntax:
document.all.elementID.autocomplete = value
</source>