From the course: JavaScript: Web Form Programming

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Supporting autofill

Supporting autofill

From the course: JavaScript: Web Form Programming

Start my 1-month free trial

Supporting autofill

- [Instructor] Pretty much every modern browser available today supports autofill, which lets users easily fill in form fields, using values that were previously entered and then saved by the browser. In this example, we're going to see how to mark up a form to help the browser identify fields that can be auto-filled and what data should go in those fields. Now, each browser has its own set of heuristics that are used to determine where each saved value should be inserted into the form. But for the most part, this process involves looking at the name and auto-complete attributes for each input field. So you can see here in the browser, I've got the documentation for the autocomplete attribute at the Mozilla developer network. And if I scroll down a little bit, you can see that there's a comprehensive set of attribute values that you can use to identify form fields for a specific types of data, such as names addresses,…

Contents