Forum Moderators: phranque

Message Too Old, No Replies

Testing for popup blockers?

Anything similar to method used to test for cookies?

         

webdevsf

4:29 pm on Apr 25, 2003 (gmt 0)

10+ Year Member



Anyone come up with an idea that I can use server side to test if a user has popups blocked? I can't think of anything that works particularly well.

Thx,
WDSF

DaveAtIFG

6:35 pm on Apr 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As I understand it, testing for blocked cookies involves attempting to write a cookie, then read it back. Since blocking popups involves browser, firewall, or op system settings on the client side, I don't think there's a way to test for it from the server.

msr986

6:44 pm on Apr 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using the same logic as the cookie test, you could try to open a pop-up containing an image url. The image url could call a cgi script which verifies the pop-up.

Not very pretty :(

dmorison

6:53 pm on Apr 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Send "popuptest.html", include window.open("somepage.html").

Include "click here if nothing happens" link for non Javascript users (which means pop-up's are out anyway).

On somepage.html, send a "magic value" within an element that has an "id"

Back on popuptest.html, read "magic value" from the pop-up window and write it into a form field on somepage.html. Then close the pop-up window. Auto-submit the form on somepage.html using Javascript and you now have all knowledge you need.

Yuck.