• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pop-up blocker

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

Please help me to solve pop-up blocker issues.

a) Is there a way we can open a new window without it being blocked by pop-up blockers?

When I use gmail and gmail opens a new window, it opens in a way that my pop-up blocker doesn't block it.
Can any one of you please give me an idea of how it is done?

b) Is there a way we can tell in the page that initiated the pop-up if the pop-up was blocked?

If we can know it's blocked, we can possibly alert the user that pop-ups must be enabled.

When using gmail previously, my pop-up blocker would block the pop-up and the gmail page would display an alert telling me that the pop-up was blocked.
"Grrr! A popup blocker may be preventing from opening the page. If you have a popup blocker, try disabling it to open the window."

Thanks in advance.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A)
Open a window with a user initiated event and the event can not be delayed.
OR
Have the user add your site to their safe list

B)

JavaScript check if blocked pop up

Eric
 
Run away! Run away! Here, take this tiny ad with you:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic