Siddhpura Amit Siddhpura Amit -4 years ago 138
Javascript Question

What is window.localStorage

The

file of "Email this page" (Chrome extension example) contains the following code:


if (window.localStorage == null) {
...
if (window.localStorage.customMailtoUrl == null) {


What does this mean? What is
window.localStorage
?

Answer Source

localStorage/sessionStorage is part of HTML5 API. Essentially, this is what cookies are used for. But this is a lot better.

https://developer.mozilla.org/en/DOM/Storage

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download