function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srinath vallabsrinath vallab 

how to know if popup blocker is enabled in browser using salesforce (visualforce)

In my application, I have popups on clicking lookup button(custom made windows). These popup windows work well if popup blocker is disabled. But if popup blocker is enabled, it blocks. I wanted to display an alert message saying "Please disable popup blocker" on launch of my application.
kiranmutturukiranmutturu
try this

var windowName = 'userConsole'; 
var popUp = window.open('popup-page', windowName, 'width=1000, height=700, left=24, top=24, scrollbars, resizable');
if (popUp == null || typeof(popUp)=='undefined') { 	
	alert('Please disable your pop-up blocker'); 
} 
else { 	
	popUp.focus();
}