HTML5 LocalStorage: How Much Space Do I Have Left?

Peder Rice picture Peder Rice · Mar 4, 2011 · Viewed 8.2k times · Source

Any idea how to check the remaining storage space in an HTML5 localstorage data store?

Answer

Luis R. picture Luis R. · Mar 4, 2011

I don't know if this helps, but you can check if it full.

“QUOTA_EXCEEDED_ERR” is the exception that will get thrown if you exceed your storage quota of 5 megabytes.

And this other answer might be related.