开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜