Viewing Our Web Storage Values with the WebInspector
Now that we have a function to save the visitor’s name and email address, let’s callit if they check the“Remember me on this computer”checkbox. We’ll do this bywatching for thechangeevent on the checkbox—this event will fire whenever thecheckbox’s state changes, whether due to a click on it, a click on its label, or a key-board press.