I am trying to force a new window on exit. _top does not work. The code below works but not for people who have popup disabled. I need this because in bye.php there are code to do a routine in database. So if someone is in a specific page and click on another link, I'd like to display bye.php instead, whichever link they click on.
<script language="JavaScript">
window.onbeforeunload = bye;
function bye() {
window.open('bye.php');
}
</script>