<SCRIPT>
<!-- BEGIN EXIT CODE
var console=true;
function exit()
{
if (console) {
window.showModalDialog("http://domain.com/pop.html",null,"dialogWidth:" + screen.availWidth + "px;dialogHeight:" + screen.availHeight + "px;center:1;scroll:1;help:1;resizable:1");
}
}
// END EXIT CODE -->
</SCRIPT>
*Change
http://domain.com/pop.html to the URL or path to your console file.
*Add onBeforeUnload = " exit() " to your body tag
*Add onClick = " exit=false " to all links you don't want to trigger the console (sponsor links and internal links)
(close all the space gaps on the onBeforeUnload & onClick)