How can I store a value that can be read from every URL using javascript? I need somthing, that can act as global storage for browser. I have tries cookies and localstorage, but they have domain restriction while reading.
Firstly you should explain why ? What ever it is you are trying to achieve may have a different solution SO people can recommend.
Anyway, here are a couple of options (there are most likely more):
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.