Wednesday, May 15, 2013

javascript browser pop check blok enable or not

<script language="javascript">
var windowName = 'userConsole';
var popUp = window.open('/popup-page.php', windowName, 'width=1000, height=700, left=24, top=24, scrollbars, resizable');
if (popUp == null || typeof(popUp)=='undefined') {    
    alert('Please disable your pop-up blocker and click the "Open" link again.');
}
else {    
    popUp.focus();
}
</script>

No comments:

Post a Comment