首页 > 如何防止搜狗浏览器自动填充表单

如何防止搜狗浏览器自动填充表单

<span class="style_pay_title">转出金额:</span>
<input type="text" style="display: none;">
<input type="password" style="display: none;">
<input name="money" type="text" class="style_pay_input" autocomplete="off"/>
<i class="style_pay_unit">元</i>
<a class="blue_color" href="javascript:;" id="redeemall">全部转出</a>

在html中写入隐藏的表单可以有效防止表单自动填充用户名和密码
但是对搜狗浏览器无效,有解决办法么


搜狗浏览器挺变态的,如果input没有定义一个id , 它就认为你是需要自动填充的,无论设置autocomplete="off"都不行。。只能定义一个唯一的id

这个方法是可行的。。 :-)


可以通过在window.onload内加个setTimeout把input内容清空

【热门文章】
【热门文章】