How do I add a string to browser's auto-complete popup? <p>Here is what google login screen looks like:</p> <p><img src="https://i.stack.imgur.com/NUGyI.png" alt="text suggestions"></p> <p>you click it and a list of suggestions pops out.</p> <p>I'd like to do something similar on my own website, where the user would click on the input, and a list of javascript populated suggestions would pop out (or the list of past searches together with my suggestions).</p> <p>How can I do this using javascript?</p>