title: How to Hide the Url in addressbar?
body: <p>I want to hide the URL in the address Bar. Can anyone please help me ?I have written the code but it is opening a new window <a href="https://www.google.co.in" rel="nofollow">https://www.google.co.in</a> I want to hide that url </p>
  
  <p>My code is</p>
  
  <pre><code> &lt;apex:page controller="HiddenAddressBarController" sidebar="false" &gt;
      &lt;apex:pagemessages /&gt;
          &lt;apex:form id="frm"&gt;
              &lt;apex:pageblock title="Login Form" id="pgblck"&gt;
                  &lt;apex:pageblockSection id="pgblcksec"&gt;
                       &lt;apex:outputLabel value="User Name : "&gt;
                          &lt;apex:inputtext value="{!UserName}" id="Usrn"/&gt;
                      &lt;/apex:outputLabel&gt;
                      &lt;apex:outputLabel value="Password : "&gt;
                          &lt;apex:inputSecret value="{!Password}" id="Pwd"/&gt;
                      &lt;/apex:outputLabel&gt;
                  &lt;/apex:pageblockSection&gt;
  
                  &lt;apex:pageblockbuttons &gt;
                       &lt;!-- &lt;apex:commandButton value="Login" action="{!loginMethod}"/&gt; --&gt;
                       &lt;apex:commandButton value="Login" onclick="ValidateadnRedirect(); return false; "/&gt; 
                      &lt;!-- &lt;apex:actionFunction name="ValidateandRedirect" action="{!loginMethod}"/&gt;  --&gt;
                  &lt;/apex:pageblockbuttons&gt;
  
              &lt;/apex:pageblock&gt;
                &lt;script type="text/javascript"&gt;
                  function ValidateadnRedirect()
                  {
                      &lt;!-- alert('----'+document.getElementById("{!$Component.frm.pgblck.pgblcksec.Usrn}").value); --&gt;
                      if(document.getElementById("{!$Component.frm.pgblck.pgblcksec.Usrn}").value=='')
                      {
                          alert('Please fill User Name');
                         // return false;
                      }
                      if(document.getElementById("{!$Component.frm.pgblck.pgblcksec.Pwd}").value=='')
                      {
                          alert('Please fill Password');
                          // return false;
                      }
  
  
                  else
                  {
                      window.open("https://www.google.com");
                  }
          &lt;/script&gt; 
      &lt;/apex:form&gt;
    &lt;/apex:page&gt;
  </code></pre>