title: How to redirect without using window.location
body: <p>If I click a button from page A, the browser will redirect to page B. In page B if I click a another button again it redirects to Page A. Here I used <code>window.location.href</code> to redirect the new page.</p>
  
  <p>eg:<code>window.location.href="http:\\localhost:12345\index2.html"</code></p>
  
  <p>Is any other alternative way to redirect next page. I don't want to use <code>windows.location</code></p>
  
  <p><strong>Update:</strong></p>
  
  <p>If I use <code>windows.location</code> the url which I come from is stored in  <code>document.reffer</code>. For security purposes I don't want to allow to store the url.</p>