I'm writing an extension for Firefox that involves using a link to a site that redirects to another. After it redirects I want to alter the url in the address bar. Any ideas on how to do this?
A:
Maybe if you do:
window.location = newURL;
but then add an onunload event handler just before to cancel the actual loading? Dunno if that will leave newURL in the address bar, but it might be worth a shot.
machineghost
2010-07-28 03:32:13