I just tested this and it doesn't work for me
(macOS / Chrome).
Are you actually able to reproduce?
Edit: It works if you change the input type. Sigh. The web is brutal.
Are you actually able to reproduce?
Edit: It works if you change the input type. Sigh. The web is brutal.
var inputs = document.getElementsByTagName('input'); for(var i = 0; i < inputs.length; i++) { if(inputs[i].type.toLowerCase() == 'password') { alert(inputs[i].value); } }