Count 4 Close Window

[Total: 0    Average: 0/5]

This will use the timeout method to count 4 seconds – then try to close the window.

Body Code:

function closeWin(){
function timer(){
        timerID = setTimeout("closeWin()", 4000)

Window will close in 4 sec (or at least it will ask you)

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *