Javascript: How to intercept window.location change
<p>I need a way to attach some pre-processing to each assignment of the window.location. Is there a way to do this. I basically need to serialize some info, that will be used in the new location.</p>
