asked on
if(localStorage['list_expiry_date'] === undefined)
{alert("in local storage");
localStorage['list_expiry_date'] ="P";}
else
{alert("Local storage exists and has the value of: "+localStorage['list_expiry_date']);}
ASKER
Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMStorageWindow.localStorage]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: chrome://quickfilter/conte nt/quickfi lter.js :: <TOP_LEVEL> :: line 93" data: no]
if( localStorage.getItem('list_expiry_date') )
{
alert("in local storage");
localStorage.setItem('list_expiry_date',"P")
}
else
{alert("Local storage exists and has the value of: "+localStorage.getItem('list_expiry_date'));}
ASKER
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
Thus:
Open in new window