Hi, everyone!
I have a problem writing cookies through Netscape, though there's no problem in IE.
Could you, please, take a look at the code and tell me what's wrong with it.Or,maybe, I should change something in browser's settings?
Thank you.
------------------------------------
<script language="javascript">
function setCookies(){
var expDate = new Date();
expDate.setTime(expDate.getTime()+ 1000*60*60*24*365);
if (document.form1.set.checked)
{
document.cookie = "show=yes;expires=" + expDate.toGMTString();
}
}
</script>
Function setCookies() is called as follows: <body [red]onUnload[/red]="setCookies();">
I have a problem writing cookies through Netscape, though there's no problem in IE.
Could you, please, take a look at the code and tell me what's wrong with it.Or,maybe, I should change something in browser's settings?
Thank you.
------------------------------------
<script language="javascript">
function setCookies(){
var expDate = new Date();
expDate.setTime(expDate.getTime()+ 1000*60*60*24*365);
if (document.form1.set.checked)
{
document.cookie = "show=yes;expires=" + expDate.toGMTString();
}
}
</script>
Function setCookies() is called as follows: <body [red]onUnload[/red]="setCookies();">