I am trying to find a way to check whether the user pressed "Save" or "Never" when prompted to save password. I was wondering if there is something similar to the permissions API, where you get the status of some of the prompts, such as geolocation and notifications.

navigator.permissions.query({name: 'geolocation'}).then(function(status) {

The end game for me, would be to redirect the user to a different url if he has pressed "never", so that the browser would prompt to save his password again.

Any help, or pointing me in the right direction would be much appreciated.

0 Answers