Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I check if popup blocker is enabled or disabled in all versions of Inernet Explorer using JavaScript?

Thanks for any hints!
Posted
Updated 20-Sep-12 2:17am
v2
Comments
Keith Barrow 20-Sep-12 8:03am    
Please read the guidance about asking a question. This might be urgent to you, but not to anyone else here. Also, the question as posted seems to imply that you just want a solution given to you, there is no evidence of any effort on you part.

Have you tried something like this: Test For Popup Blocker Using JavaScript[^]
Link taken from David Walsh Blog[^].

Regards,

— Manfred
 
Share this answer
 
Comments
suprajabasani 20-Sep-12 8:40am    
i tried it..but not working..
Manfred Rudolf Bihy 20-Sep-12 10:16am    
"Not working" means what?
You have to give more details, as what error occurred etc. or what exactly is not working.
suprajabasani 20-Sep-12 10:21am    
no error..it always open window..even popup blocker enabled
The below code is for not having access to the above website

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();
}


regards
Chandru
 
Share this answer
 
Comments
suprajabasani 20-Sep-12 8:39am    
i tried..itz check only if condition
i tried..itz check only if condition..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900