To check cookie disable status through javascript
Hi,
I have wrote a javascript to check the status whether the cookie is disabled or enabled in the browser. I have used following function to check the same: function checkCookie() { if (navigator.cookiesAreEnabled()) { alert("cookies enabled"); } else { alert("disabled"); } } This function works fine in Mozila firefox and doesnot work in IE6.. I have also tried creating a cookie and checking the cookie whether created. I have used document.cookie to create one... But the result is the same... Could anybody help on this... Back to top |
|||||
All times are GMT - 8 Hours
|