I want to show the user a url of the item i am previewing him on the main page. This will help my users locate the main page of that item. I have seen a similar example on facebook. Now a days, when you click on a posted image on facebook, it previews the image in a theater mode, when you refresh the browser, it will take you to the main page of that image. I tried methods mentioned below.
location.hash="/example";
This is not what i want because i dont just want to change the hash property. I want to change the url. The next thing i tried out is the pushState property of window object. This is not working in IE so this will not work for me.
window.history.pushState('object',"title goes here","New_location_goes_here");
Can anyone help me. Thanks in advance