The first type: JS automatically closes the window at a scheduled time
Second type: Click the link to close the JS window without prompt
Close window
Third type: The window does not prompt for automatic closing js code
"Code to automatically return to the previous page:
Copy code
The code is as follows:
document.write("")How to close the window without prompting in IE6-7 JS
Method 1:
js code
Copy code
window.open("","_self" );
window.close();
The code is as follows:
js code
function open_complex_self() {
var obj_window = window.open('close.html', '_self' );
obj_window.opener = window;
obj_window.focus();
Copy code
Attached:
Copy code
The code is as follows:
//Normal close with prompt
}
//Close IE7 without prompting
function closeie7(){
window.open('','_top');
window.top.close();
}