+ 2

How To Save Data Using Only JavaScript?

i need to save some changes and get it after reload the page !!

25th Oct 2017, 8:55 PM
Abderrahim Oukhrib
Abderrahim Oukhrib - avatar
1 Answer
+ 5
Look at web storage API: that's the modern replacement for cookies (which have also a JS kind-of API to handle them ^^): https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie Anyway, be aware that both are only supported in internet browser context (not working in androids app' html viewers -- webview)...
26th Oct 2017, 2:42 AM
visph
visph - avatar