title: mvc hide address bar
body: <p>How to hide address bar in mvc web application? I want to hide that in every view. I have tried by doing this code in javascript:</p>
  
  <pre><code>function popup(pageURL, title, popupWidth, popupHeight) {
      window.moveTo(0, 0);                
  
      var targetPop = window.open(pageURL, title, 'status=no, tmenubar=no, scrollbars=yes, maximize=yes, resizable=no, width=' + screen.availWidth + ',height=' + screen.availHeight, "_blank");
      targetPop.moveTo(0, 0);
      targetPop.focus();
  }
  </code></pre>
  
  <p>i call that function on _Layout :</p>
  
  <pre><code>&lt;body onload="popup()"&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>i don't know how to get current url to pass it to the "pageURL" parameter.
  or do i do that in a wrong way?</p>
  
  <p>can you guys give me better solutions?</p>
  
  <p>EDITED:</p>
  
  <p>when first time i run the app, it will show the main _Layout and the Index view inside (Renderbody()). how i make the main layout to hide the address bar?
  and so if i navigate to another view</p>
  
  <p>Thank You guys.
  Sorry for My bad English.</p>