This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes detect pop-ups and cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "detect pop-ups and cookies" Watch "detect pop-ups and cookies" New topic
Author

detect pop-ups and cookies

Tina Long
Ranch Hand

Joined: Mar 04, 2005
Posts: 36
I need a way to detect if a person had pop-ups and cookies enabled on their machine. I wrote a script that uses navigator.kookieEnabled to test for cookies - but I'm not sure how to detect for pop-ups. I don't want to have to create a popup and see if it works - if that's the only way then i'll do it - but is there a way to read the settings that they have in their browser?

If there is a way to do this without using javascript - i'd be much happier...I've just not figured that out yet...
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
only way is to open one up....
Tina Long
Ranch Hand

Joined: Mar 04, 2005
Posts: 36
really? There's not a way to read the settings that the user has set in their browser or something?
 
GeeCON Prague 2014
 
subject: detect pop-ups and cookies