How do I trap a redirect from javascript?
<p>I have this odd bug that causes a 302 redirect to another page on my site and I can't seem to track the source. The bug is very random and hard to track.</p>

<p>I have 2 or more dropdowns on a page for users to select from. Selecting from the first loads the second, second loads third etc. This is done thru posting back on the onchange event, all .net.</p>

<p>Additionally through jquery onblur is wired up to the change event. I'm not sure why but I'm guessing that whomever wanted to unselect the dropdown after a selection was made, most likely to prevent a scrolling mouse wheel from changing the selection and causing several post backs.</p>

<p>When I unhook the onblur the bug goes away but I need to know whats going on. Some how onblur is causing a sequence of events that results in a 302 redirect without even getting to the server. This would suggest a javascript location change. How can I stop at the location change and see what js is triggering this?</p>

<p>Any suggestions ?</p>

<p>Thank you.</p>
