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