decting cookie

wxdqz

New Member
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=http://www.webdeveloper.com/forum/archive/index.php/"Please Turn Off Pop-up blocker">
</form>


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