Influencing whether browsers prompt to save credentials

后端 未结 2 654
孤城傲影
孤城傲影 2021-02-15 11:39

For most web pages that have a username and password dialog, browsers will prompt the user if they want to save the credentials for that form:

2条回答
  •  温柔的废话
    2021-02-15 12:29

    When IE is configured to ask you the question, then it will ask or not depending on the way you submit the form.

    When submiting using an input type="submit" (i.e. a submit button), then IE will ask you if you want to save the password.

    If you use javascript to submit the form, like this document.getElementById('Form1').submit(), it will not ask you to save the password.

    Try this HTML, in IE (I didn't test other browser yet):

    • the submit button asks you to save password
    • the submit link does not ask anything

    Html code:

    
    
    
        Home Page 
        
    
    
        
    User: Pass: submit

    If you check the box to never ask again, then you can configure that in IE options:

    Tools > Internet Options > Content > AutoComplete

提交回复
热议问题