I want to pass a boolean type JAVASCRIPT variable value from one html page to another (from page1.html to page2.html). I am not getting idea to do this. I am not sure whether my approach is right or wrong. Please suggest me the correct way to do this.
the value of first_load should change when the page loads for the first time and the changed value is to be sent to another html page.
<html>
  <head>
    <script type="text/javascript">
      first_load = false; 
      function load() {
        first_load = true;
        alert("first_load="+first_load);
        //pass the value of first_load to page2.html
      }
    </script>
  </head>    
  <body onload="load()">    
  </body>
</html>
how can I get the value of first_load at page2.html??
 
     
     
    