To turn off Firefox’s pop-up blocker on iPhone or iPad, open Firefox, navigate to three horizontal lines menu, tap Settings, and turn off the Block Pop-Up Windows option. Window.open(window.gameURL,'test','left=20,top=20,width=1024,height=640,toolbar=0,resizable=0,location=0') Įxample response body: window. There, turn off the Block Pop-Up Windows option. Url: baseurl + '/index.php?option=com_pbbgs&format=raw&getinfo=goingame', I could move the server-side check to the page that gets opened in the popup, but I'd like to do it before opening the popup, if possible. Also, using async:false is bad - in FF it is known to block the whole browser. Allowing Pop-ups from Office Online in Chrome At the first encounter with a pop-up blocker, leave the dialog that triggered the pop-up blocker open, do not. Doing them in ajax callback will not do the trick. I read that browsers might block the popup if it's not called by a user click event, so I tried setting the AJAX request to async: false, which solved the problem in Firefox, but Google Chrome still keeps blocking my popup. Yes, popups should be a direct result of a user action. Poper Blocker is a single-purpose Adblock extension for Chrome, that blocks all types of popups and ads across any and all websites. On my website there is a button that just used to call a function that calls window.open, however, recently an adjustment was needed to do a server-side check before the popup was opened.Įver since the code was added that does the AJAX call, browsers blocks the popup, that is opened in the success callback of the AJAX call.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |