关于如何禁止浏览器自动完成功能,大概有两种方式,第一种是通过浏览器的设置来完成,第二种是通过编程的方式, 即HTML FORM的autocomplete属性来完成。
1. 浏览器方式
以IE浏览器为例,(由于我用的是英文版,只能以英文版来叙述了,不好意思。)点击 Tools -> Internet Options -> Content , 你将会看到5个部分,其中第四部分是关于AutoComplete的设置, 单击 “Settings" , 然后一个设置对话框出来了, 取消所有的多选框,然后,单击 Ok -> OK 。 这样你就完成了IE浏览器的设置,其他浏览器可以参考IE浏览器的设置方法。
2. 使用编程的方式
a. 方法一:给整个Form添加autocomplete
- <html>
- <body>
- <form action="autocomplete.html" autocomplete="off" >
- Username: <input type="textbox" name="username"/>
- <br/>
- Password: <input type="password" name="password"/>
- <br/>
- <input type="submit" value="Submit"/>
- </form>
- </body>
- </html>
b. 方法二:给单独的表单控件添加autocomplete
- <html>
- <body>
- <form action="autocomplete2.html" >
- Username: <input type="textbox" name="username" autocomplete="off"/>
- <br/>
- Password: <input type="password" name="password"/>
- <br/>
- Code: <input type="textbox" name="code"/>
- <br/>
- <input type="submit" value="Submit"/>
- </form>
- </body>
- </html>
相关推荐
随心所欲关闭笔记本屏幕,特别用于没有硬件开关的显示器上
关闭笔记本电脑屏幕的工具小工具,笔记本电脑的屏幕没有单独的开关,想要关闭屏幕来省电,通常需要到控制台内的电源选项来进行设置,最短设置时也还要1分钟,若想要立即关闭笔记本电脑的屏幕,可以来使用 Turn Off ...
此实用程序用于关闭带有显示器的 PC、笔记本电脑或上网本的显示器。 只需运行该程序,您的显示器就会关闭。 实际上这个程序用于笔记本或上网本,用于节省电池。
Description: Turn off (deactivate) noecho.
绿色软件,可以关闭显示器,使显示器进入睡眠状态,节省电池。
jquery插件turn.js实现杂志翻页效果(浏览器需支持html5).zip
Mastering AutoCAD 2018 and AutoCAD LT 2018 is the complete tutorial and reference every design and drafting professional needs. Step-by-step instructions coupled with concise explanation walk you ...
这是一个简单的Python GUI,可让您在选定的时间段内自动关闭PC。 您也可以取消之前的关闭功能。
这是一个简单的 Python GUI,可让您在选定的时间段内自动关闭 PC。 您也可以取消之前的关闭。
Firefox浏览器10秒钟的浏览器Chrome浏览器3的浏览器,Whale的浏览器。 如果您想要更快的更新,请使用Firefox版本而不是chrome版本。 Firefox会在10分钟内进行检查,而Chrome至少需要一天到三天的时间。 目录 한국...
关闭计算机,注销计算,重启计算机之类的,可以方便大家使用
TURN.JS 实现翻书效果(自适应单双页)
TURN是一个client-server协议。TURN的NAT穿透方法与STUN类似,都是通过取得应用层中的公有地址达到NAT穿透。但实现TURN client的终端必须在通讯开始前与TURN server进行交互,并要求TURN server产生"relay port", 也...
Regedit key C Administrative Sharing automtaicly turn off
A novel low turnoff loss carrier stored SOI LIGBT with trench gate barrier
- turn off the computer - hibernate the computer - suspend (standby) the computer - reboot the computer - turn off monitor - run screen saver - log off interactive user - get Windows version - enable ...
为了实现图书翻页的效果我们在网上可以看到很多教程 在这里推荐turn.js 网上的turn.js 有api 不过是英文的 很多人看起来不方便 .关于代码也是奇形怪状在这里我将详细讲解如何使用turn.js实现翻页效果 ,本篇...
turn.js+pdf.js资源