Why is this form input disappearing on a refresh?
I'm debugging a form and I find that when I refresh the page that one of the input elelments are set back to nothing (password) and the other two retain their value (text and checkbox)开发者_开发知识库. This is in IE - is this expected behavior?
is this expected behavior?
Yes, password fields are not stored by default unless you instruct the browser to remember them. Normally when you submit a form containing as password fields the browser asks the user whether he wants to remember his login details for this site (behavior might vary between browsers and whether it is enabled or not).
In short: yes. Browsers don't remember the values of password fields when you come back to a page because of the security risk it would pose.
精彩评论