Some useful HTML snippets
Pop up on Exit

Although pop-ups are not looked upon favourably, you may have a legitimate reason for wanting to pop up a page after someone navigates away from you page. To do this use the following code as a template.
<html>
<head>
</head>
<body onunload="exitPop();">
<script type="text/javascript">
<!--
var doPop = 1;
function exitPop() {
if (doPop) {
url = "http://www.connectivesoftware.com";
twin = window.open(url,"sp","width=600,height=500,toolbar=1,scrollbars=1,status=1,resizable=1");
twin.blur();
window.focus();
}
}
-->
</script>
Hi - exit this page to get a pop up
</body>
</html>
If this has been useful to you, and you would like to buy me a coffee, or help towards my monthly server costs please click here to make a donation via paypal.

















Recent Comments