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.

Storing and retrieving form data

Storing and retrieving form data

From the course: JavaScript: Web Form Programming

Start my 1-month free trial

Storing and retrieving form data

- [Instructor] The auto fill feature can be really useful for filling in form fields with common data values. But the problem is that browsers only recognize certain types of data such as names, addresses, payment types and so on. And if you want to save and restore other form field values that aren't recognized by auto fill, you'll need to do it yourself. So in this example, we're going to see how to use the browser's local database to save and restore form values. So first let's take a quick look at the form example that we're going to be working with. And so this is the finished form and I'm going to open the developer tools console so we can see the log output. So this is a really simple form with a search box and check box, and the form lets me enter a string to search on, right? So I'll just type in some characters. And I can also click this box to include images in my search. And when I click the search button…

Contents