Jump to content

Working for all EXCEPT Chrome


sphinx

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/250180-working-for-all-except-chrome/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.