How I detect and use `localStorage`: a simple JavaScript pattern

By now, everyone knows how to detect and use localStorage. However, I’ve been using a seemingly unconventional (but slightly more efficient) technique to do so. Since I haven’t seen it documented anywhere else, here goes!


This content originally appeared on Mathias Bynens and was authored by Mathias

By now, everyone knows how to detect and use localStorage. However, I’ve been using a seemingly unconventional (but slightly more efficient) technique to do so. Since I haven’t seen it documented anywhere else, here goes!


This content originally appeared on Mathias Bynens and was authored by Mathias


Print Share Comment Cite Upload Translate Updates
APA

Mathias | Sciencx (2011-07-29T15:09:40+00:00) How I detect and use `localStorage`: a simple JavaScript pattern. Retrieved from https://www.scien.cx/2011/07/29/how-i-detect-and-use-localstorage-a-simple-javascript-pattern/

MLA
" » How I detect and use `localStorage`: a simple JavaScript pattern." Mathias | Sciencx - Friday July 29, 2011, https://www.scien.cx/2011/07/29/how-i-detect-and-use-localstorage-a-simple-javascript-pattern/
HARVARD
Mathias | Sciencx Friday July 29, 2011 » How I detect and use `localStorage`: a simple JavaScript pattern., viewed ,<https://www.scien.cx/2011/07/29/how-i-detect-and-use-localstorage-a-simple-javascript-pattern/>
VANCOUVER
Mathias | Sciencx - » How I detect and use `localStorage`: a simple JavaScript pattern. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2011/07/29/how-i-detect-and-use-localstorage-a-simple-javascript-pattern/
CHICAGO
" » How I detect and use `localStorage`: a simple JavaScript pattern." Mathias | Sciencx - Accessed . https://www.scien.cx/2011/07/29/how-i-detect-and-use-localstorage-a-simple-javascript-pattern/
IEEE
" » How I detect and use `localStorage`: a simple JavaScript pattern." Mathias | Sciencx [Online]. Available: https://www.scien.cx/2011/07/29/how-i-detect-and-use-localstorage-a-simple-javascript-pattern/. [Accessed: ]
rf:citation
» How I detect and use `localStorage`: a simple JavaScript pattern | Mathias | Sciencx | https://www.scien.cx/2011/07/29/how-i-detect-and-use-localstorage-a-simple-javascript-pattern/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.