【问题标题】:how to enable username and password autofill in browsers如何在浏览器中启用用户名和密码自动填充
【发布时间】:2014-11-07 15:18:09
【问题描述】:

我有登录页面,一旦用户首先登录,我想在其中自动填充用户名和密码字段。所以下次如果他回到登录页面,用户名和密码字段需要自动填写,所以他只需点击登录按钮。

我在上面的字段中启用了自动完成功能,但它在 IE 或 chrome 浏览器中不起作用。

<input type="text"  id="userName" autofocus="autofocus" value="" tabindex="1" autocomplete="on">

 <input type="password"  name="password" id="password" value="" tabindex="2" maxlength="20" autocomplete="on">

【问题讨论】:

  • 检查您的浏览器设置。它在您登录的其他网站上是否有效?
  • 是的,它适用于我的 facebook 和其他网站。想知道自动填充需要采取什么额外步骤吗?..

标签: jquery html autofill


【解决方案1】:

您还必须将其添加到您页面上的&lt;form/&gt;

<form autocomplete="on" ..other attributes>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-10
    • 2019-03-25
    • 2014-12-07
    • 2012-06-20
    • 2010-11-29
    • 2014-07-02
    • 2011-04-01
    • 2011-02-06
    相关资源
    最近更新 更多