Using the following JavaScript code will open a popup:
window.open('http://www.google.com','mywindow','width=400,height=200');
If you call it two times like this:
window.open('http://www.google.com','mywindow1','width=400,height=200');
window.open('http://www.google.com','mywindow2','width=400,height=200');
The latter will override the previous popup. I want to have two separate windows for popups at the same time using the above code, even if I set different reference names like mywindow1 and mywindow2.
How can I fix this issue?
Additional information:
The way I call JavaScript in the code-behind is as follows:
string js = "<script language=javascript> window.open("myurl1","_blank","DialogWidth=700;DialogHeight=750;left=30;top=30;");</script>";
Response.Write(sUrl);
js = "<script language=javascript> window.open("myurl2","_blank","DialogWidth=700;DialogHeight=750;left=30;top=30;");</script>";
Response.Write(sUrl);
It seems like the latter closes the previous window.