I can tell you that you're on the right tracks. Local storage is the way to go, so go ahead read on that :)
As for my experience, I did a bit of web games years ago when HTML5 wasn't a thing - so you'd usually go for cookies to save and load data. Cookies were very easy to implement but are a mess to work with.