views:

36

answers:

2

I have a form field where users can change their passwords, but if they set their settings to remember passwords, their password shows up. Is there a way to make the field always empty? So that they always have to type their password.

<label for="oldpassword" class="styled">Old password:</label>
<input type="password" id="oldpassword" name="oldpassword"/><br />
+3  A: 

You could clear the old password shortly after the page loads.

Using jQuery:

setTimeout(
    function() { $(':password').val(''); },
    1000  //1,000 milliseconds = 1 second
);
SLaks
awesome! thank you.
ggfan
A: 

nope. you cannot handle this browser behaviour.

zerkms