Please, help me!
I have two html pages. There is a button on the first page and a div on the second page. So, when I click the button, I want it to open the second page in the same window and change the background of the div.
Here is my code :
$(".button").on("click",function(){
window.location.href="secondPage.html";
$("div").css({background: "red"})
});
Any suggestions?