jquery - JavaScript: How do I prevent browsers from blocking the pop-up window that I've created? -
Once loaded I have created a simple javascript function to display my pop-up window. But it stops being blocked by Firefox and Google Chrome and I somehow have to enable it on Firefox and Chrome to display pop-ups.
Is there any alternative to this? I have a player on the pop-up window, so I have to use a pop-up so that the player should play it automatically. The problem is that if I put it on the page, once the user clicks on the second page the whole page is reloaded and the player automatically closes for a few seconds until the full page is reloaded. And I have to stop it from happening.
Thanks
The general rule is that if the popup blockers
The window will be attached .open or the same JavaScript that is not enforced by the direct user action, this is the answer to a button click, without hit by the popup blocker,
window.open < You can call / code>, but if you put the same code in the timer event, it is blocked. Ega. The depth of the call series is also a factor - some older browsers only look for instant callers, new browsers can grow a little back to see if the caller's caller was a mouse click etc. Keep it as shy as you are, to avoid it from a poplar blocker.
Please take a look at the reply of dthorpe here. This involves your question.
Comments
Post a Comment