Firefox ( Firebug), script HTML window.location:
window.watch("location", function(id, oldv, newv) { debugger; return newv; });
document.watch("location", function(id, oldv, newv) { debugger; return newv; });
I think you can also extend this for top and self , but this is only useful if you use frames. I know this not so much, but it is better than nothing and certainly much better than all the other solutions listed here. I'm still looking for a way to track other types of JS redirects, such as window.navigate.
source
share