title: Pass js var through query string
body: <p>I need to pass a js variable through out all pages where at the end of navigation, i need to summarize the total from all page and display the value.
  Here is my JS code:</p>
  
  <pre><code>    &lt;script&gt;
      $(document).ready(function() {
      $('input[name=q1]').click(function() {
        var selectedValue = $(this).val(); 
        if($(this).val() == "A3") 
        var count=1;
        else
        var count=0;
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form name="login" action=“page2.html" method="post"&gt;
      &lt;section class="heading"&gt;
       &lt;p&gt;&lt;strong&gt;Test1&lt;/strong&gt;&lt;/p&gt;
      &lt;/section&gt;
      &lt;p class="pstyle"&gt;1st page&lt;/p&gt;
       &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;input type="radio" name="q1" id="q1A1" required value="A1" /&gt;
                  Topic1
              &lt;/td&gt;
              &lt;td style="padding-left: 30px;"&gt;
                  &lt;input type="radio" name="q1" id="q1A2" required value="A2"/&gt;
                  Topic2
              &lt;/td&gt;
          &lt;/tr&gt;&lt;br&gt;
          &lt;tr style="height: 77px;"&gt;
              &lt;td&gt;
                  &lt;input type="radio" name="q1" id="q1A3" required value="A3"/&gt;
                  Topic3  
              &lt;/td&gt;
              &lt;td style="padding-left: 30px;"&gt;
                  &lt;input type="radio" name="q1" id="q1A4" required value="A4"/&gt;
                  Topic4          
              &lt;/td&gt;&lt;br&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;input type="Submit" value=“Next “Page style="font-size: 40px;"/&gt;
              &lt;/td&gt;
              &lt;td style="padding-left: 30px;"&gt;
                  &lt;input type="Submit" value="Cancel" style="font-size: 40px;"/&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;        
  &lt;/form&gt;
  </code></pre>
  
  <p>Please let me know how I can pass the variable "Count" to my another page. I am able to implement this with local storage but I need to pass it using query string. Please advice. Thanks.</p>