I am writing Javascript code and I am trying to change the current page as a result of a user clicking a button. I use this piece of code:
window.location.replace ("/ customer / order / 12");
containing the relative URL of my site I want to go to. When this code works (looking at it in Firebug), the url line looks right, but what is currently included on the page is just updating. Looking at the headers with HttpFox, the first thing I see is the result (Aborted), Type: NS_BINDING_ABORTED. However, if I issue this command:
window.location.replace ("/ customer / order / 12");
from Firebug, the browser goes to the correct URL that I specified ("/ customer / order / 12").
Can someone help me determine what is going wrong here?
Thanks in advance! Doug
source share