When we use this method: Response. Write ("<SCRIPT> window. Close () </SCRIPT> ")
Always Prompt: the prompt that the webpage you are viewing is trying to close
How do I remove the prompt and close the form directly?
You can use the following methods:
Response. Write ("<SCRIPT> window. Opener = NULL; window. Close () </SCRIPT> ")
Only IE6 is supported.
Opener can be set to any value without any prompt
How can I close a parent form through a child form?
Subform (pop-up form ):
Likewise:
Response. Write ("<SCRIPT> window. opener. Top. Opener = NULL; window. opener. Top. Close () </SCRIPT> ")
<Object ID = HH1 classid = "CLSID: ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<Param name = "command" value = "minimize"> </Object>
<Object ID = HH2 classid = "CLSID: ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<Param name = "command" value = "maximize"> </Object>
<Object ID = hh3 classid = "CLSID: adb880a6-d8ff-11cf-9377-00aa003b7a11">
<Param name = "command" value = "close"> </Object>