Possible Duplicate:
Change the URL in the browser without loading the new page using JavaScript
i want just add url in address bar of browser Note: dont want redirect
e.i i have a url www.example.com/index.html
i want set url on 'address bar' like www.example.com/index/page2.html
i use document.location.hash = 'foo';
but it is add only # data
like www.example.com/index.html#foo
note : i dont want to redirect only want to add url in address bar so don't answer document.location like that
any solution for that ?