Chrome浏览器禁用TextBox的自动填充

只许在网页的</body>前添加如下js代码:

    <script type="text/javascript">
        //禁止自动填充
        $('#tbLoginName').attr('readonly', 'true').click(function (event) {
            this.removeAttribute('readonly');
        });
    </script>

</body>
 

猜你喜欢

转载自blog.csdn.net/junhm/article/details/88872014