jQuery in Action, 3rd edition
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "detect pop-ups and cookies" Watch "detect pop-ups and cookies" New topic

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

Joined: Nov 08, 2001
Posts: 15385
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?
I agree. Here's the link: http://aspose.com/file-tools
subject: detect pop-ups and cookies
It's not a secret anymore!