Last post Jan 13, 2010 03:38 PM by NC01
Jan 13, 2010 03:26 PM|cutekids525|LINK
In few screens of my application, I am opening pop ups...
If pop ups are blocked in browser then it's gonna be problem...
Is there anyway to turn off or deactivate the pop up blocker programmactically...
plz help me...it's very urgent....!!
Users using vista are facing this problem...
Jan 13, 2010 03:38 PM|NC01|LINK
The only way to get around popup blockers is for user activity to directly open the window.
This will work most of the time, unless the user has his blocker set to refuse all popups.
The other way is to tell him to turn off the blocker:
<div id="pageContent" style="display:none">
<!-- All page content goes here. -->
var windowUrl = 'about:blank';
var windowId = 'TestPopup_' + new Date().getTime();
var windowFeatures = 'left=0,top=0,width=400px,height=200px';
var windowRef = window.open(windowUrl, windowId, windowFeatures);
if ( !windowRef )
alert('A popup blocker was detected. Please turn it off to use this application.');
// No popup blocker was detected...
document.getElementById('pageContent').style.display = 'block';
window.onload = detectPopupBlocker;