Skip to main content

Ways to store data in browser?

  1. Cookies
  2. Web Storage API (local/session)
  3. IndexDB
  4. JS variables
  5. DOM Node Storage (dataset property or setAttribute(), getAttribute(), eg: someElement.dataset.store = ‘some value’)
  6. Cache API