There is an authorization form (FORM):

  • login
  • password
  • button (BUTTON)

When you click on BUTTON, the login and password are checked, and if successful, it will redirect to another page. If BUTTON is inside FORM, the browser automatically asks to save the login and password, despite that the login or password did not pass successful authorization. How to make so that the browser would ask to save the login and password only with successful authorization.

  • 2
    Hmm .. I suspect that in any way? - Qwertiy

0