显示先前输入的值的浏览器行为
我的应用程序中有几个 JSP 页面,其中有几个“文本”类型的“输入”标签
我观察到,在 Chrome 中,如果文本字段位于“表单”标签中,并且存在表单提交,并且当用户返回同一页面并尝试单击向下箭头时,它会显示之前输入的值。
但是如果没有表单提交,即页面转换发生在 AJAX 调用中,则 chrome 不会显示之前输入的值。
但在 IE 和 Firefox 中,情况并非如此,我的意思是,即使提交表单,它也不会显示用户之前输入的值。
我的问题是:
1. 仅当“input”标签位于“form”中并且提交表单时,Chrome如何显示先前输入的值?
2.为什么 IE 和 Firefox 不显示以前输入的值。我需要在这些浏览器中进行任何设置才能显示之前输入的值吗?
I have couple of JSP pages in my application with couple of "input" tags of type "text"
What I observed is, in Chrome, if the text field is in a "form" tag and if there is a form submission and when user comes back to the same page and tries click down arrow, it shows previously entered value.
But if there is no form submission, that is page transition happens with AJAX call, chrome is not showing this previously entered value.
But in IE and Firefox it is not the case, I mean it is not showing the previous value that user entered before even with form submission.
My questions are:
1. How Chrome is showing previously entered value only when "input" tag is in "form" and with form submission?
2.Why IE and Firefox is not showing previously entered values. Do I need to do any settings in these browsers to show previuosly entered value?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您所指的功能是自动填充。您可以通过以下网址访问更多详细信息:http://www. google.com/support/chrome/bin/answer.py?answer=142893
IE:转至 Internet Explorer 菜单/工具/选项/内容/自动完成/
单击设置>检查您想要的选项。
火狐:
http://support.mozilla.com/en-US/kb/Form%20autocomplete ;
The feature that you are referring to is Autofill. You can access additional details on it at: http://www.google.com/support/chrome/bin/answer.py?answer=142893
IE: Go to Internet Explorer Menu/Tools/Options/Content/AutoComplete/
click Settings > Check the options that you want.
Firefox:
http://support.mozilla.com/en-US/kb/Form%20autocomplete;