Siddhpura Amit Siddhpura Amit -4 years ago 138
Javascript Question

What is window.localStorage


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

Answer Source

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

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