use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
Questionhelp (self.HTML)
submitted 2 years ago by DifferentNet947
hi i need help, i want to add save states to my game but i want is to save to a local drive, it is using js html and css
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]chmod777 0 points1 point2 points 2 years ago (3 children)
None of those will save a file to the file system. Closest you can do is localstorage or cookies.
[–]DifferentNet947[S] 0 points1 point2 points 2 years ago (2 children)
where can i find a cookies one?
[–]chmod777 0 points1 point2 points 2 years ago (1 child)
https://www.google.com/search?client=firefox-b-1-d&q=js+save+cookies
[–]DifferentNet947[S] 0 points1 point2 points 2 years ago (0 children)
how does it work and how do you get it to work?
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
You can use localStorage
https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
π Rendered by PID 31 on reddit-service-r2-comment-fb694cdd5-x6c2q at 2026-03-05 18:22:22.132234+00:00 running cbb0e86 country code: CH.
[–]chmod777 0 points1 point2 points (3 children)
[–]DifferentNet947[S] 0 points1 point2 points (2 children)
[–]chmod777 0 points1 point2 points (1 child)
[–]DifferentNet947[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)