title: How to Pass values form One html Page to Another html Page javascript?
body: <p>How can I pass values from one html page to another html page javascript</p>
  
  <p>For example:</p>
  
  <p><strong>Page1.html page</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;arasu&lt;/title&gt;
    &lt;style type="text/css"&gt;
    #popupbox{
    margin: 0; 
    margin-left: 40%; 
    margin-right: 40%;
    margin-top: 50px; 
    padding-top: 10px; 
    width: 20%; 
    height: 150px; 
    position: absolute; 
    background: #FBFBF0; 
    border: solid #000000 2px; 
    z-index: 9; 
    font-family: arial; 
    visibility: hidden; 
    }
    &lt;/style&gt;
    &lt;script language="JavaScript" type="text/javascript"&gt;
    function login(showhide){
      if(showhide == "show"){
          document.getElementById('popupbox').style.visibility="visible";
      }else if(showhide == "hide"){
          document.getElementById('popupbox').style.visibility="hidden"; 
      }
    }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div &gt; 
  &lt;form name="login" action="AgaramAnimation.html" method="get"&gt;
  &lt;center&gt;Username:&lt;/center&gt;
  &lt;center&gt;&lt;input name="username" size="14" /&gt;&lt;/center&gt;
  &lt;center&gt;Password:&lt;/center&gt;
  &lt;center&gt;&lt;input name="password" type="password" size="14" /&gt;&lt;/center&gt;
  &lt;center&gt;&lt;input type="submit" name="submit" value="login" /&gt;&lt;/center&gt;
  &lt;/form&gt;
  &lt;/div&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>here i enter two values user name and password when i click submit button the popup will closed and values pass to another page java script given below .</p>
  
  <p><strong>Page2.html</strong></p>
  
  <pre><code>function gettingvalues()
           {            
              var connection = new ActiveXObject("ADODB.Connection");
              var connectionstring = "Data Source="";Initial Catalog="";User ID="";Password="";Provider=""";
              connection.Open(connectionstring);
              var rs = new ActiveXObject("ADODB.Recordset");
              rs.Open("select * from logindetails where username='" **+ username +** "' and password= '" **+ password +** "'", connection);
              if (!rs.eof) {
                  document.getElementById("").innerHTML = "";   }
              else {
                  alert('please enter valid username and password');
              }
              connection.close;
          }
  </code></pre>
  
  <p>Pls help me..........</p>