autocomplete="off"
Quote:I'm not sure if it'll work in all browsers but you should try setting autocomplete="off" on the form. HTML <form id="loginForm" action="login.cgi" method="post" autocomplete="off"> Quote:The easiest and simplest way to disable Form and Password storage prompts and prevent form data from being cached in session history is to use the autocomplete form element attribute with value "off". From http://developer.mozilla.org/En/How_to_Turn_Off_Form_Autocompletion[^] Some minor research shows that this works in IE to but I'll leave no guarantees ;) @Joseph: If it's a strict requirement to pass XHTML validation with the actual markup (don't know why it would be though) you could theoretically add this attribute with javascript afterwards but then users with js disabled (probably a neglectable amount of your userbase or zero if your site requires js) will still have their passwords saved. Example with jQuery: JavaScript $('#loginForm').attr('autocomplete', 'off');
<form id="loginForm" action="login.cgi" method="post" autocomplete="off">
Quote:The easiest and simplest way to disable Form and Password storage prompts and prevent form data from being cached in session history is to use the autocomplete form element attribute with value "off". From http://developer.mozilla.org/En/How_to_Turn_Off_Form_Autocompletion[^]
$('#loginForm').attr('autocomplete', 'off');
Quote:Just a quick comment, since this is changing, HTML5 adds the autocomplete attribute to the spec, so it is valid now.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)