Currently I am thinking which way is best for clearing username and password fields that have been autocompleted or filled in IE. Problem doesn't happen in Chrome or Firefox. Values don't let user to navigate further in Wizard because of ASP.NET validators.
I have read that autocomplete="off"
does not work reliably in modern some browsers. Therefore I am leaning to using javascript like document.getElementById("Username").value = "";
.
If this is best way, should it be in window.onload
or is it too early and autocomplete magic happens after it? When is the best time to execute the emptying? Is there better way to handle this?
edit: I am forced to use HTML4.01 in this case. As far as I know autocomplete is HTML5 supported attribute.