Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save user input without backend

I am just learning JavaScript and web development in general and I was wondering if what I want to do is possible. I would like to write a JavaScript quiz that saves the answers a user inputs without needing a backend. Is this possible?

If it is not possible what is the simplest and easiest way I can do this?

Thank You

PS: If this is not the right place to ask this, please direct me to the place I should be asking this.

like image 244
Manny_G Avatar asked Oct 01 '22 02:10

Manny_G


1 Answers

Yes you can either use cookies or localstorage

http://developer.mozilla.org/en-US/docs/Web/API/document.cookie

http://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage

like image 104
smistry Avatar answered Oct 03 '22 14:10

smistry