In article <mK********************@comcast.com>,
mc**********@yahoo.com
enlightened us with...
My client is asking that once a viewer visits his website, the onLoad popup
window not show up again.
What's the best way to do this?
Not to use the damn things.
Most of us block them anyhow. Either with popup blockers or by using
Netscape/Mozilla and disabling them. They are horrible, horrible things.
If he insists, cookies. Set one on first visit, then check before
popping up window. However, many of us delete cookies daily, so that
might not work too well for everyone.
Then again, those of us who delete them tend to be the same people who
disable popups to begin with.
If cookies are not looking great, check IP address, write it to a
database table, then check that before popping up window. Requires a
database and server-side scripting.
have fun. :)
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------