Click to See Complete Forum and Search --> : decting cookie


catchup
03-24-2003, 04:45 PM
I would like to detect if user (major browsers) have cookies enabled. How can i detect this in the index.html, so it is detected upon entering the site. I would like to alert if no cookie via pop-up, actually i strongly worry that the user may have a pop-up blocker, so i would like to combine the cookie detection with a pop-blocker detection ((something like this): (thanks))

main.htm

<script>
function checkPop(){
window.open("check.htm","")
}
</script>
<body onLoad="checkPop()">
<form name="popResult">
<input name="warning" value="Please Turn Off Pop-up blocker">
</form>


check.htm
<script>
window.opener.popResult.warning.value="No Pop-Up Killer Detected"
self.close()
</script>

catchup
03-24-2003, 11:40 PM
sry, i'm lost how can a detection script that detects if cookies are enabled and also detects if pop-up killers are used, would drive away people from the site?

catchup
03-25-2003, 05:24 PM
its an ecommerce site, so cookies need to be enabled for the shopping cart aspect to work. the demographic is aimed at wood workers, and reports verify that they use the internet about 4 hours a month, and that they sometimes surf the internet on someone elses computer, that someone else might have a pop-up blocker enabled and cookies disabled, and the owner of the computer might not be looking over the shoulder of the wood worker who is browsing the products and who may want to make a purchase. I'm not the owner of the website, just the developer, the site is pretty much completed, but i'm worried about the cookie and pop-blocker situation, not so much the about the pop-up blockers cause there is only 1 part that uses that and its chances of being viewed are about as much as the terms and conditions of this website is viewed. But i thought, why not knock down 2 birds with 1 stone by having a script that does both.... can you help?