by mikepurvis · 1y ago · 0 comments
Made a friend on k10k back in, maybe 2001, still friends. Texted her a few days ago. Never met yet.
I remember email him and asking about why my photo gallery didn't work when I tried to save the "currently selected image" as a cookie. He replied and explained to me that cookies contain string values and that you can't save a reference to a DOM element as a cookie. So, cookie = document.getElementById('image0') will not work, but cookie = 'image0' will :)