Delayed Exit Splash Javascript
<meta http-equiv="refresh" content="0;url=http://www.URL.com/file.zip"> |
The problem is that, I also have the exit popup - exitsplash codes installed on that page. Therefore when the download redirect executes, the exit popup pops up....
And this is not what I want.
So I was thinking if it's possible to delay the exit popup script to like 3seconds/5seconds, so that it runs the script after the user has downloaded the file already?
I have found this solution:
<script type="text/javascript"> function Func1() { var exitsplashalertmessage = '***************************************\n\n > > > W A I T < < <\n\n CLICK THE ***CANCEL*** BUTTON\n on the NEXT Window for Something\n VERY Special!\n\n************************************** *'; var exitsplashmessage = '***************************************\n\n W A I T B E F O R E Y O U G O !\n\n CLICK THE *CANCEL* BUTTON RIGHT NOW\n TO STAY ON THE CURRENT PAGE.\n\n I HAVE SOMETHING VERY SPECIAL FOR YOU!\n\n***************************************'; var exitsplashpage = 'http://www.url.com'; } function Func1Delay() { setTimeout("Func1()", 1000); } </script> |
Any ideas?
>>>This Kid Is Amazing