I have a section one one of my sites that has some accounting features that open in a popup (for example, the transaction history for a customer loaded on screen).
Is there any way through Javascript to make those popups close themselves automatically if the user navigates away from the page that opened it?