title: Passing and retrieving multiple parameters in jquery from one page to another page
body: <p>I want to pass 4 names using jQuery from one page to another page using jQuery in winRT app.
  done using one parameter. How to pass multiple parameters and retrieve in 2nd page?</p>
  
  <p>Coding for one parameter.</p>
  
  <p><code>default.html</code>:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
         $(document).ready(function () {
          $(function () {
              $('#navigate12').click(function () {
                  var te = $("#text1").val();
                  var tea = $("#text2").val();
                   window.location.href = "/page.html?cal=" + te; 
                     });
          });});
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
   &lt;button id="navigate12"&gt;navigate&lt;/button&gt;
   &lt;input id="text1" type="text"/&gt;
   &lt;input id="text2" type="text"/&gt;
   &lt;input id="text3" type="text"/&gt;
   &lt;input id="text4" type="text"/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
   page.html
  &lt;html&gt;
  &lt;head&gt;
        &lt;script src="/js/jquery-1.9.1.js"&gt;&lt;/script&gt;
        &lt;script&gt;
                $(document).ready(function () {                  
                  function qs() {
                  var qsparam = new Array();
                  var query = window.location.search.substring(1);
                  var parms = query.split('&amp;');
                  for (var i = 0; i &lt; parms.length; i++) {
                      var pos = parms[i].indexOf('=');
                      if (pos &gt; 0)
                      {
                          var key = parms[i].substring(0, pos);
                          var val = parms[i].substring(pos + 1);
                          qsparam[key] = val;
                      }
  
                  }
                 var msg = new Windows.UI.Popups.MessageDialog(val);
                 msg.showAsync();
               } 
                 var splitstr = qs();
                      });
  &lt;/script&gt;
  &lt;title&gt;
  &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>