silverswim
Programmer
hi,
I am trying to get the pop-up window to only come up once every browser session. I'm using cookies, but something is not working. Can anyone see where I am messing it up?
I put this in the head:
function setCookie()
{
var the_date = new Date("January 20, 2099"
;
var cookie_date = the_date.toGMTString();
var the_cookie = cookie_date;
the_cookie = the_cookie + ";expires= :" ;
document.cookie = the_cookie;
}
function readCookie()
{
var checkDate= the_date.toGMTString();
if !(the_cookie= checkDate){
setCookie();
MM_openBrWindow('popUpWindow.htm','FreeTrial','resizable=no,width=250,height=250');
}
}
then this went in the body section:
onLoad=" readCookie(); MM_preloadImages('currNaviOver/currentNaviBar-Over_05.jpg')"
Thanks v. much
silverswim
I am trying to get the pop-up window to only come up once every browser session. I'm using cookies, but something is not working. Can anyone see where I am messing it up?
I put this in the head:
function setCookie()
{
var the_date = new Date("January 20, 2099"
var cookie_date = the_date.toGMTString();
var the_cookie = cookie_date;
the_cookie = the_cookie + ";expires= :" ;
document.cookie = the_cookie;
}
function readCookie()
{
var checkDate= the_date.toGMTString();
if !(the_cookie= checkDate){
setCookie();
MM_openBrWindow('popUpWindow.htm','FreeTrial','resizable=no,width=250,height=250');
}
}
then this went in the body section:
onLoad=" readCookie(); MM_preloadImages('currNaviOver/currentNaviBar-Over_05.jpg')"
Thanks v. much
silverswim