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 !"