问题 I know that this question has been asked, but none of the posts have helped me to get through it. So, here is the thing - I have two stylesheets on my site. I want to save lately used stylesheet to local storage. Switching between stylesheets works perfectly. Here is my code: window.onload = function() { var currentStylesheet = localStorage.getItem("stylesheet"); document.getElementById("stylesheet").value = currentStylesheet; document.getElementById("stylesheet").setAttribute("href",