sphinx Posted October 31, 2011 Share Posted October 31, 2011 Hello! I'm using this for an alert popup to detect if popup actually worked, it works, however not ON Chrome: <script type="text/javascript"> var windowName = 'userConsole'; var popUp = window.open('http://site.com/', windowName, 'width=1200, height=700, left=24, top=24, scrollbars, resizable'); if (popUp == null || typeof(popUp)=='undefined') { alert("Your browser blocked the request reciever interface. \nPlease disable popups and reload the panel."); } else { popUp.focus(); } </script> To make the popup even show for chrome, this needed to be modified to show: if (popUp == null || popUp.location=='about:blank' || typeof(popUp)=='undefined') { This however, messed up the other browsers and made multiple "alerts" occur. Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/250180-working-for-all-except-chrome/ Share on other sites More sharing options...
Adam Posted November 1, 2011 Share Posted November 1, 2011 Could you provide a browser (and any add-ons) where the alert is displayed more than once? I'm unable to reproduce the problem. Quote Link to comment https://forums.phpfreaks.com/topic/250180-working-for-all-except-chrome/#findComment-1283966 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.