JavaScript Reference/Javascript Methods/AutoCompleteSaveForm — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
"AutoCompleteSaveForm()" Example
<html>
<body>
<form name="myForm">
First Name: <input type="text" name="firstName"><br>
Last Name: <input type="text" name="lastName" autocomplete="off">
</form>
<script language="JavaScript">
function function1(){
window.external.AutoCompleteSaveForm(document.forms[0]);
myForm.firstName.value="";
myForm.lastName.value="";
}
</script>
<button onclick="function1();">Save</button>
</body>
</html>
"AutoCompleteSaveForm()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |external |
+----------------+--------------------------------------------------------------+
"AutoCompleteSaveForm()" Syntax, Parameters and Note
Note:
Adds the form input to the autocomplete list.
Syntax:
window.external.AutoCompleteSaveForm(param1)
Parameters:
param1 Required; the name of the form.