Prevent user to find password through Firebug/Chrome Dev Tools

后端 未结 13 1216
醉梦人生
醉梦人生 2020-12-30 22:28

\"Hidden

For the passport input field:



        
13条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 23:19

    You can use a simple Javascript code to store the password value in a variable onblur and then restore it onfoucs or/and onsubmit.

    Look at the following demo code and its online demo here:

    
    
    
      
      JS Bin
    
    
    
    

    It is clear that solution is JavaScript dependent solution, so in the case of disabling javascript, you may use noscript asking for JavaScript enabled browser.

提交回复
热议问题