2010-08-01 52 views

回答

1

是的。有一個非標準的,但承認autocomplete attribute,可以應用於形成元素。

入住你的HTML這樣的事情:

<input type="password" name="the-password" id="the-password" autocomplete="off"/> 

它也可以通過Javascript,設置:

var thePassword = document.getElementById('the-password'); 
thePassword.setAttribute("autocomplete", "off"); 
相關問題