It’s per domain and port (the same segregation rules as the same origin policy), to make it per-page you’d have to use a key based on the location
, or some other approach.
You don’t need a prefix, use one if you need it though. Also, yes, you can name them whatever you want.
More Related Contents:
- how to store new elements added in webpage by user? [closed]
- How to store objects in HTML5 localStorage
- What is the max size of localStorage values?
- How do I store an array in localStorage? [duplicate]
- HTML5 Local storage vs. Session storage
- How to save an image to localStorage and display it on the next page?
- When do items in HTML5 local storage expire?
- JavaScript; communication between tabs/windows with same origin [duplicate]
- How to check whether a Storage item is set?
- Get HTML5 localStorage keys
- How to delete a localStorage item when the browser window/tab is closed?
- html5 localStorage error with Safari: “QUOTA_EXCEEDED_ERR: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.”
- HTML5 Local Storage fallback solutions [closed]
- Looping through localStorage in HTML5 and JavaScript
- Scope of sessionStorage and localStorage
- How to find the size of localStorage
- localStorage access from local file
- How do I save and restore a File object in local storage
- Accessing localStorage from a webWorker
- Is it possible to use any HTML5 fanciness to export local storage to Excel?
- Javascript/HTML Storage Options Under File Protocol (file://)
- How can I serialize a function in JavaScript?
- How to save data from a form with HTML5 Local Storage?
- Can you use HTML5 local storage to store a file? If not, how?
- How to store objects in HTML5 localStorage/sessionStorage
- JavaScript localStorage object broken in IE11 on Windows 7
- Saving and loading an image from localStorage
- How can I request an increase to the HTML5 localstorage size on iPad, like the FT web app does?
- Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22
- Why do two web pages have different localStorage? How can I fix this?