[thelist] Popup frequency

Erik Mattheis gozz at gozz.com
Fri May 11 06:40:47 CDT 2001


That's pretty simple, but perhaps simpler would be:

function openWindowOnce() {
   if (top.name != 'seenpopup') {
     window.open([...]);
     top.name = 'seenpopup';
   }
}

or could do something like

if (parseInt(top.name) < 4) {
     window.open([...]);
     top.name = parseInt(top.name) ++;
}

or something like that.


>Hi Chris
>
>The easiest thing to do would be to write a short lifespan cookie to their
>browser, then check for that on each click.
-- 
- Erik Mattheis

"Everything's better"
http://gozz.com/
(612) 827 3963




More information about the thelist mailing list