Chapter 9
Storing User Data in the Browser
IN THIS CHAPTER
Getting the hang of the Web Storage API
Taking your first look at JSON
Adding stuff to storage
Getting stuff from storage
Removing stuff from storage
Data is like garbage. You’d better know what you are going to do with it before you collect it.
—MARK TWAIN (ATTRIBUTED)
One of the hallmarks of a bigtime website is that most of what you as a site visitor see is data that has been retrieved from a server. That data has been created and managed by a database specialist, and the code that asks for the required data and then returns that data to the web browser is created by a back-end web developer.
Alas, back-end coding is beyond the purview of this book (but it’s a big part of my companion book Web Coding and Development All-in-One For Dummies [Wiley]). This book is all about front-end web development, but does that mean you’re out of luck when it comes to working with data?
For example, suppose your web page enables each user ...
Get HTML, CSS, & JavaScript All-in-One For Dummies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.