Solution to disable the window after IE6 downloads files

Source: Internet
Author: User

Recently, a BUG in the project was modified. The function is as follows:
Input query conditions on the screen, search for the database in the background, and download the results to the local device in CSV format.
The current screen is responsible for generating data, and a window is displayed to download the data.

The problem is:
Everything works normally in IE8, but the sub-window will not automatically close after IE6 downloads the file.

After several days, I finally found a solution to this problem. In fact, it is very simple, that is, I modified the window. open method.

Original code:
Js Code
Window. open ('popupsnforoid. aspx ', '', 'height =' + hauteur + ', width =' + largeur + ', top =' + wintop + ', left =' + winleft + ', toolbar = no, menubar = no, location = no, resizable = no, scrollbars = no, status = no ');


Modified code:
Js Code
Window. open ('popupsnforoid. aspx ','');


In this way, the problem is solved... Unknown principle...

Author: "laser is an attitude !"

Related Article

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.