Reading Notes
Cookies
HTML5 sought to offer a standardized storage API implemented natively across all browsers without the need for 3rd party plugins
To check for HTML5 storage:
function supports_html5_storage(){
try{
return 'localStorage' in window && window ['localStorage'] !== null;
} catch (e) {
return false;
}
}
JavaScript commands
setItem()
will write or overwrite previous valuegetItem()
will return the stored value or null if emptyStorage Limits
Quota_Exceeded_Err
Error announcing that storage limit has been hitThe future of local persistent storage may be IndextedDB, but at the time the article was written it had not been implemented yet.