Click to See Complete Forum and Search --> : Cookie Detection


Rik Comery
08-05-2003, 05:40 AM
I need a script which i am sure is very simple. Basically i simply need to know if the user has cookies enabled or not. If so, a message on the screen will say You have cookies enabled and if not it will say.... you guessed it... You do not have cookies enabled

Can anyone help?

Khalid Ali
08-05-2003, 09:16 AM
if(navigator.cookieEnabled){
//cookies are enabled
}else{
//they are not
}