I've added a custom button to Web access by modiying customactions.xml. Issue is no matter what javascript code I use, I can not get to close the tool window. We need for the window to close on close button or when the user is done selecting information needed. I've tried -
ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true);
Also tried client side script on aspx page, and adding client side html button with onclick command and all different methods. Thanks.