Questions tagged [popup-blocker]

In web browsers, a popup-blocker is browser code that attempts to prevent annoying or disruptive unsolicited popup windows from polluting the display area.

Most browsers implement popup blockers by attempting to correlate user actions to window creation activities in script. If a window is opened by code that is responding to a mouse click event, the popup blocker allows the window to be shown.

If a window is opened in browser script that is not directly linked to a mouse click or other user input action, the popup blocker will probably prevent the window from being shown on the premise that the user didn't do anything to warrant a response from the app. Opening a window in a timer event handler, for example, will usually run afoul of popup blockers because there is little or no association between the timer event handler that opens the window and the user mouse click handler that created the timer event.

The definition of "proximity" of code to a user event varies by browser implementation. For example, Internet Explorer 6 would only allow code within a mouse click event handler or within about 2 nested call frames of a mouse click handler to open a popup window. In Internet Explorer 7, the nested function call tolerance was much greater, so long as the call chain originated in a mouse click event.

74 questions
3
votes
1 answer

Chrome popup "blocker" loads hidden page & plugins - any way around this?

If I launch a window with a flash game in it, and Chrome's popup blocker suppresses it, the user hears the music from the game, but sees nothing. This is because Chrome doesn't block the window; it just hides it. Chrome loads the page to get the…
Webveloper
  • 1,059
  • 10
  • 15
3
votes
3 answers

Facebook application, dialogue to publish on user's wall, using Javascript API, pop-up blocked in browsers

I am using JS-API to generate a dialogue which asks for permission to publish the status message generated by my Application. Given below is the screenshot of what I am talking about: Here is the code: FB.ui( { method: 'feed', name:…
3
votes
1 answer

Programmatically adding a site to the Allowed Sites of the IE Pop-up Blocker (VB.NET)

A few more details. I need to programmatically (Winforms, VB.NET) check if a site is in the Allowed Sites list of the IE Pop-Up Blocker (IE 7 and 8 and Windows XP, Vista and 7) and if not, add it. The application is fully trusted and I don't want to…
GlueR
  • 71
  • 1
  • 7
3
votes
0 answers

Does Selenium Webdriver bypass browser default pop-up blockers?

So my team ran into a strange situation today, when run manually one of our tests fail due to firefox's pop up blocker ending up blocking the window that is supposed to open. But when we run our automation Webdriver ignores the pop-up blocker and…
3
votes
2 answers

javascript: Print text that is received via ajax

This is what I want to do: User clicks print button; This calls function, which does ajax call to get the text to be printed; A new window is opened and the text is written to this. The window and print is handled like this: my_text = "hello"; …
user984003
  • 28,050
  • 64
  • 189
  • 285
3
votes
2 answers

Flash Banners Conflicting with Pop-Up Blockers?

We've been creating banners using the getURL linking method (in a blank window). For many people, it works just fine. You click the banner and are taken to our site. For others (me included), clicking the flash object triggers a pop-up warning in…
user24632
  • 157
  • 4
  • 8
3
votes
1 answer

Selenium - disable popup blocker

I have just spent hours stuck on Selenium with Safari before figuring out that I needed to disable popup blocker to allow a login popup that I have. My question is, is there a way to disable the popup blocker when creating a node/webdriver with…
DevDave
  • 6,700
  • 12
  • 65
  • 99
2
votes
0 answers

Issues With Pop-Up Blocking (this shouldn't be happening?)

First to clarify, I am trying to open a pop-up in response to a user event. I am developing an application on Facebook that involves e-commerce transactions, and for reasons related to my EV SSL certificates, I have to open our billing terminal in a…
Julian
  • 1,406
  • 1
  • 13
  • 24
2
votes
1 answer

window.open() and target="_blank" not working together in IE

The thing is — if you have links with target="_blank" and you have handler for click on this link that makes window.open(), then pop window that was called with JS will be shown, but the link will be not open in new tab in IE (9 version was tested…
elisium
  • 308
  • 1
  • 5
  • 14
2
votes
0 answers

How to avoid pop-up blocking when opening a new window in a different browser tab?

I am facing an issue when opening a URL in a different browser tab. I have installed a pop-up blocking chrome extension. when I click on a button to open a new URL in a new browser tab , I am getting alert saying 'popup blocking'. I am using…
Shan.M
  • 139
  • 3
  • 11
2
votes
2 answers

How does download in Google Drive (Web) work?

I am currently implementing a file download in a web application. I was struggling a little with the pop up blocker, the download needs to start immediately after the user interaction, so there cannot be a server round trip. Now I noticed, that…
Robert P
  • 9,398
  • 10
  • 58
  • 100
2
votes
1 answer

Popup blocker triggered in onclick handler if there is a delay

While implementing a payment gateway, I ran into the situation where it is best for the user experience to use popups for the 3D Secure process. The flow is like this: User is on the payment page and enters credit card data into hosted fields. On…
maddo7
  • 4,503
  • 6
  • 31
  • 51
2
votes
0 answers

Get reference to window previously blocked by pop-up blocker?

The code below catches when pop-up blockers are enabled. In our code, pop-ups get blocked because this code gets called a few seconds after a user click, long enough to trigger pop-up protection. When the pop-up gets blocked, newWindow is null. When…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
2
votes
1 answer

How to prevent IE7 file download popup blocker showing up in ASP.NET App

I have an application in .NET that allows user to download document (.rtf) by clicking a downlaod button, then a save/open dialogue opens. It works in IE6, and 8 that ways. However, in IE7, when clicking the button, a popup blocker…
Pingpong
  • 7,681
  • 21
  • 83
  • 209
2
votes
0 answers

Popups are not suppressed if the delay <= 1000 ms

I've tested on various browsers executing code snippet below and they have all get blocked by default. setTimeout(() => window.open('https://google.com'), 1001); But if the delay is <= 1000 it can successfully open a new tab/window. Why?
Jian
  • 3,118
  • 2
  • 22
  • 36