This topic has been archived. It cannot be replied.
工作学习 / IT杂谈 / when i use window.close() to close the broswer, it always popup a dlg ask Y/N, how to avoid this dlg and close directly? give me some hints please!!xs!
-bigdesk(From CCS);
2001-12-27(#314960@0)
up
-rootbear(喝点啤酒晕晕头);
2001-12-27{93}(#314995@0)
to HOW did you open the pop-up window,
you are not always to be asked to answer
yes or no.
what's that means?when i see the source code of the reply window of Rolia it also use the window.close() to close the window, what's the difference? any tricks?
-bigdesk(From CCS);
2001-12-27(#315057@0)
Simple, because that is the last window you want to close.
-jeffrey815(Smartiecat);
2001-12-27(#315060@0)
nothing wrong with window.close(), but how did you open it,
check how rolia opens its pop-up window or try
-rootbear(喝点啤酒晕晕头);
2001-12-27{138}(#315099@0)
[a href="javascript:popup('test.htm')"]pop[/a]
[script]
function popup(url) {
window.open(url,'popupwindow');
}
[/script]
Wrong! If you use Netscape, and it's the last window to close by calling window.close(), then Netscape will always prompt you.
-jeffrey815(Smartiecat);
2001-12-28(#315254@0)