JavaScript/LocalStorage

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Introduction[edit | edit source]

Localstorage is an option to store JSON in localstorage of the browser. This could be used to store a language setting (e.g. from english language to german language in the user profile) and when the user revisits the page the setting of pages are restored according to previous selection of the user (e.g. the selection of the language),

Activities[edit | edit source]

  • Compare the approach for the language selection of the user interface with JavaScript/Cookies that can be used for the same purpose.
  • Analyze simple WebApp of Javascript BubbleBreaker by bobak7 and identify how the highscores are stored and loaded from the Local Storage.