ASP.NET - Open a window from popup - Asked By Anandh Ramanujam on 27-Feb-12 03:36 AM

Hi,

Im trying to opening a window from a popup using window.open

It opens, but in the same browser. instead i want the new popup to be open in new browser.

Can anybody help me in this regard

Thanks.

Somesh Yadav replied to Anandh Ramanujam on 27-Feb-12 03:42 AM

Hey

I'm now using:

ScriptManager.RegisterStartupScript(this, this.GetType(), "key", "window.open('edward.aspx','_blank');", true);

In the Button Click event, and it works great!

Web Star replied to Anandh Ramanujam on 27-Feb-12 03:47 AM
Just use set sName as _blank to in window.open method to This name is used as the value for the TARGET attribute on a form or an anchor element.
_blank
The sURL is loaded into a new, unnamed window



window.open("Sample.htm",'_blank ',
    "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");

hope this helps you
dipa ahuja replied to Anandh Ramanujam on 27-Feb-12 06:51 AM
Popup will be opened in the same browser from which you will open the parent page.