Since I'm still learning the `localStorage` and `cookie` techniques, I am trying to change the color of the div on `page1.html` from `page2.html` by using the submit button, color of the div should be changed permanently when the user clicks submit button on `page2.html`  

This is what I got on page1:

```
window.onload = function() {
    var anchors = document.getElementsByClassName("circleBase type1");
    for(var i = 0; i < anchors.length; i++) {
        anchors[i].onclick = function() {
            window.open("EnterInformation.html");
        }
    }
}

```

on page2 i used `localStorage` for saving data permanently, with this save I need to change the color of the div on page1. 
This is page2 so far:

```
 function SaveInfo() {
        localStorage.Yritys = $('#Yritys').val();
        localStorage.Henkilönimi = $('#Henkilönimi').val();
        localStorage.Asema_yrityksessa = $('#Asema_yrityksessa').val();
        localStorage.Puhelin_Nr = $("#Puhelin_Nr").val();
        localStorage.e_Mail = $('#e_Mail').val();
        localStorage.Keskustelun_aihe = $('#Keskustelun_aihe').val();

```

What would be the solution to this? It would be nice to use `localStorage` instead of cookies. Thank You!