How can I get browser to prompt to save password?

前端 未结 20 1281
面向向阳花
面向向阳花 2020-11-22 16:20

Hey, I\'m working on a web app that has a login dialog that works like this:

  1. User clicks \"login\"
  2. Login form HTML is loaded with AJAX and displayed i
20条回答
  •  情话喂你
    2020-11-22 16:34

    This solution worked for me posted by Eric on the codingforums


    The reason why it does not prompt it is because the browser needs the page to phyiscally to refresh back to the server. A little trick you can do is to perform two actions with the form. First action is onsubmit have it call your Ajax code. Also have the form target a hidden iframe.

    Code:

    
    

    See if that causes the prompt to appear.

    Eric


    Posted on http://www.codingforums.com/showthread.php?t=123007

提交回复
热议问题