just add url on only address bar of browser
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/136458/change-the-url-in-the-browser-without-loading-the-new-page-using-javascript">Change the URL in the browser without loading the new page using JavaScript</a>  </p>
</blockquote>



<p>i want just add url in address bar of browser <code>Note: dont want redirect</code></p>

<p>e.i i have a url <code>www.example.com/index.html</code></p>

<p>i want set url on 'address bar' like <code>www.example.com/index/page2.html</code></p>

<p>i use <code>document.location.hash = 'foo';</code></p>

<p><code>but it is add only # data
like www.example.com/index.html#foo</code></p>

<p><code>note : i dont want to redirect only want to add url in address bar so don't answer document.location like that</code></p>

<p>any solution for that ? </p>
