pause page using java script before close

<script language=”javascript”>

function pauseMe(){
var startTime = new Date().getTime();
while (new Date().getTime() < startTime + 1500);
}

window.onbeforeunload = pauseMe;

</script>
</head>

Advertisements