We create a simple website with an input field and a button. When you enter a hex-color-code in the input field and you press the button, the background color of the page should change. We save the last color we used in the localStorage
to automatically load the last used color.
Sync pages with localStorage
In this example, we update our website to have one website for setting the color and another one that changes automatically when we change the color in the first one.