


Solve the problem of window.opener=null;window.close(), only supports IE6 but not IE7, IE8_javascript skills
May 16, 2016 pm 05:03 PMwindow.opener=null;window.close(), only supports IE6 but not IE7
Open a new window and close this window without popping up the prompt before closing the window
function openWin(){
window.open('login.jsp','','fullscreen=yes,menubar=no ,resizable=no');
window.opener=null;
window.close();
}
is
function openWin(){
window.opener=null;
window.open('login.jsp','','fullscreen=yes,menubar=no,resizable=no');
window.close();
}
////////////////////////
<a href="#" onclick="window.opener=null;window.open( '','_self');window.close();"> Do not confirm closing</a>
That is, add window.open(' between window.opener=null;window.close() ','_self');
That's OK!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Replace String Characters in JavaScript

Custom Google Search API Setup Tutorial

8 Stunning jQuery Page Layout Plugins
