Looking to Mimic GMail page change detection behavior
<p>I would like to have my web app be abple to pop open new windows like GMail does for chats and phone calls but I'd also like to be able to detect if they click on something in the nav that will take the main window to another URL and break the code running in the popups windows.</p>

<p>Ideally it would prompt them and give them a chance to cancel the page change and not break the app.  Any ideas how GMail does this?</p>
