R
Ron Lautmann
I want to close a browser window so I created a Close button that does this:
private void Button1_Click(object sender, System.EventArgs e)
{
RegisterClientScriptBlock("GetData","<Script>close()</Script>");
}
But when this runs the browser puts up a dialog box saying: "The web page
you are viewing is trying to close the window, od you want to close this
window?"
Is there a way to close a browser window without this dialog box?
private void Button1_Click(object sender, System.EventArgs e)
{
RegisterClientScriptBlock("GetData","<Script>close()</Script>");
}
But when this runs the browser puts up a dialog box saying: "The web page
you are viewing is trying to close the window, od you want to close this
window?"
Is there a way to close a browser window without this dialog box?