window.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();
}
////////////////////////
Do not confirm closing
That is, add window.open(' between window.opener=null;window.close() ','_self');
That's OK!