autocomplete = 'off' is not working on firefox

后端 未结 17 1751
無奈伤痛
無奈伤痛 2020-12-17 09:25

I created 2 login pages of same domain.

  1. www.example.com/login.cfm
  2. www.example.com/newLogin.cfm

I put the form name different for 2 forms

17条回答
  •  爱一瞬间的悲伤
    2020-12-17 09:43

    A way to Firefox don't find those fields is to change their type to hidden before the post.

    You can use a jQuery or JavaScript to set that on onclientclick in your submit button.

    Example:

    
    
    
    

    Just remember to clear your browser's cache before testing or use the private mode (CTRL+SHIFT+P).

提交回复
热议问题