Forums - C# Corner

Forum guidelines
Karthik Che

Karthik Che

  • 1.5k
  • 351
  • 136.2k

How to get rid of Popup Blocker when open a popup Window ?..

Feb 8 2018 12:15 AM
Hi ,
 
How can bypass from the popup window , when i trying to open new window in my application. Can anyone suggest me with sample code. 
 
Here are the code which i have used in my application for creating the popup window.
Code : 
 
ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(760/2);var Mtop = (screen.height/2)-(100/2);window.open( 'ConfirmCart.aspx', null, 'height=700,width=760,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no,top=\'+Mtop+\', left=\'+Mleft+\'' );", true); 
 
Thanking You ,
Karthik K

Answers (1)