//code for pop up
var popupWindow = null;
function popup(url, width, height) {
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var params = 'width=' + width + ', height=' + height;
params += ', top=' + top + ', left=' + left;
params += ', directories=no';
params += ', location=no';
params += ', menubar=no';
params += ', resizable=no';
params += ', scrollbars=no';
params += ', status=no';
params += ', toolbar=no';
popupWindow = window.open(url, '', params);
popupWindow.focus();
LoadModalDiv();
if (window.focus) { popupWindow.focus() }
return false;
}
Protected Sub GridViewExtensions_RowCommand(sender As Object, e As GridViewCommandEventArgs)
ClientScript.RegisterStartupScript(Me.GetType(), "YourPopScript", "popup('EditDialog.aspx',500,375);", True)
end sub
In the above code I am opening a aspx page with pop up using window.open.
Issue is when using dual monitor set up .
If i extend my laptop display and start using the website on my second screen and try opening the pop up the pop up opens in my laptop andnot the second screen where te parent page (website) is.
How can i make window.open the aspx page pop up in the monitor where the parent page is