Possible duplicate:Disable the "Save Password" browser functionality
How can you block the password request to remember in HTML form? An example is PayPal, which does not allow you to save passwords.
I know that autocomplete must be turned off, and there is another trick to block autocomplete when the browser does not support the attribute (create a hidden field called password). These two methods do not work in blocking the browser from asking for a password.
Submit a authrequest using Ajax, and then redirect JavaScript to success.
auth
// in JQuery it would be like this $.post({ url: '/login.php', data: 'username=test&pass=test', success: function(data) { window.href='success.php' } });
OR
(I have not tried it yet)
( DOM) ( ) , .
.
javascript...
document.getElementById('usernameOrWhatever').setAttribute( 'autocomplete', 'off' )
Source: https://habr.com/ru/post/1789511/More articles:google maps api - javascriptЕсть ли способ получить уведомления о новых драгоценных камнях с помощью Bundler? - rubyHow to turn a "random" number read from a text file into an array - arraysInputStream.bytesRemaining меньше, чем должно быть - javaHow to convert NSArray to integer values - iosiphone, using an array to determine in the range of the main graph - iphonegetting the value of $ (ProjectDir), $ (SolutionDir) in a vcproj file - visual-studio-2008second onSizeChanged gets zero height - androidVim ctags current directory and gemset - vimЯ что-то делаю с точки зрения объединения соединений? - c#All Articles