I'm running the below script to open a popup window. Works great!
I'd like to find out if there's a way to include Mouse Coordinates in
the top and left parameters so that when my button is clicked, the
popup opens in the same location.
protected void btnLocateEmpID_ Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder() ;
sb.Append("<scr ipt>");
sb.Append("wind ow.open('Locate EmpID.aspx', '','toolbar=0,
height=320,widt h=375,resizable =0,scrollbars=0 ');");
sb.Append("</scri");
sb.Append("pt>" );
Page.RegisterSt artupScript("te st", sb.ToString());
}
Please be as descriptive as possible with your reply.
Thanks for your help! ;-)
I'd like to find out if there's a way to include Mouse Coordinates in
the top and left parameters so that when my button is clicked, the
popup opens in the same location.
protected void btnLocateEmpID_ Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder() ;
sb.Append("<scr ipt>");
sb.Append("wind ow.open('Locate EmpID.aspx', '','toolbar=0,
height=320,widt h=375,resizable =0,scrollbars=0 ');");
sb.Append("</scri");
sb.Append("pt>" );
Page.RegisterSt artupScript("te st", sb.ToString());
}
Please be as descriptive as possible with your reply.
Thanks for your help! ;-)