D
Dave
I'm running the below script to open a popup window. Works great!
How Can I get "Mouse Coordinates" (X,Y) to include them as Left and
Top parameters
so that the popup window opens "where the button was clicked"?
protected void btnLocateEmpID_Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("<script>");
sb.Append("window.open('LocateEmpID.aspx', '','toolbar=0,
height=320,width=375,resizable=0,scrollbars=0');");
sb.Append("</scri");
sb.Append("pt>");
Page.RegisterStartupScript("test", sb.ToString());
}
I've already read what the books have to sayin reqards to
window.open,
and I haven't been lucky in finding anything in reqards to
window.open
and Mouse Coordinates together. Please be as descriptive as possible
with your reply.
Thanks for your help!
How Can I get "Mouse Coordinates" (X,Y) to include them as Left and
Top parameters
so that the popup window opens "where the button was clicked"?
protected void btnLocateEmpID_Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("<script>");
sb.Append("window.open('LocateEmpID.aspx', '','toolbar=0,
height=320,width=375,resizable=0,scrollbars=0');");
sb.Append("</scri");
sb.Append("pt>");
Page.RegisterStartupScript("test", sb.ToString());
}
I've already read what the books have to sayin reqards to
window.open,
and I haven't been lucky in finding anything in reqards to
window.open
and Mouse Coordinates together. Please be as descriptive as possible
with your reply.
Thanks for your help!