title: How to have a constant value for a variable across many html pages using javascript?
body: <p>I have a website with two web pages. In page1 when a button gets clicked it loads page2 and in page2 when a button gets clicked it loads page1. </p>
  
  <p>The problem is i have a variable var c=0 in .js file that increases by 1 when page two loads and doesn't stay 1 when page1 loads rather it becomes 0 again. </p>
  
  <p><strong>Is there a way by which when var c increases to 1 it stays 1 over all pages till i change it again ?</strong></p>