Window. Close close the window. Close the window without a system prompt.

Source: Internet
Author: User
Tags close close

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>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.