PDA

View Full Version : pop-up blocker detection



zpewish
September 12th, 2003, 01:29 AM
hey guys,

i need to know if there is a way in javascript to detect and alert the user if they have pop-ups blocked because my flash site pops up from a splash/intro page and I'm afraid that people with pop-up blockers will be unable to view my site. any ideas will be greatly appreciated. thanks

atomgiant
September 16th, 2003, 02:00 PM
I am not sure, but if you open the window in javascript, you should be able to tell if the window handle is valid. Do a google search for exact syntax.

However, I would say as a rule of thumb it is a bad idea to have your main site open as a popup. Perhaps a "click to skip intro" button would be better.

If you must have a popup though, if you attach the popup to a button with an onclick event to do a window.open... i believe that most pop-up blockers will allow this to open. I believe it is only the unsolicited popups that are normally blocked.

eyezberg
September 16th, 2003, 06:50 PM
good sites
a/do not use pop-ups
b/redirect the main page to a new one reading something like
"thank you for visiting, if you did not see the content (pop-up),
please click this link..."