代码编辑器:
x
1
<form action="/dy/html/getpost" method="get" autocomplete="on">
2
First name:<input type="text" name="fname"><br>
3
E-mail: <input type="email" name="email"><br>
4
<input type="submit">
5
</form>
6
7
<p>填写并提交表单,然后重载页面,再次填写表格,看看 autocomplete 是如何工作的。</p>
8
<p>然后,尝试设置 autocomplete 为“off”。</p>
9
10
<p><b>注意:</b>除了 Opera,其他主流浏览器都支持 autocomplete 属性。</p>
11
12
<footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>
13