Hey everyone, I have a question about the reliability of the following JavaScript code:
if (!document.cookie) {
alert('Cookies are disabled.');
}
I've done some testing in IE, Firefox, and Chrome, and it seems that when cookies are disabled, the document.cookie property becomes unavailable. Has anyone else encountered success or failure with this approach?
Thanks in advance,
Stephen
Further Details
I understand that this method relies on JavaScript being enabled on the client side. I'm also familiar with other server-side and JavaScript solutions. Let's try to keep the conversation focused on this particular topic.