Discussion on 'How do you change the url without reloading the page?'
(1) On May 25, 2008 at 02:34 am Jinsheng tang [0] said:
- use Javascript window.location.hash = "what every you want to set". I just implemented at http://www.softwarecm.org/index.htm , check http://www.softwarecm.org/index.htm, and http://www.softwarecm.org/main_javascript.js, you will know.
- You might find some post at other forums said this cause Safari enter a dead loop. But I have tested at Mozilla, IE and Safari. To be safe, I add a variable "virginLoad" to prevent this dead loop. If it really enters the deadloop, it will reload and page and stop the loop. You will understand after searching "virginLoad" at http://www.softwarecm.org/main_javascript.js.
Sign in to add your own comment. (This only takes a few seconds.)