×

Loading...

Topic

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!
    • up
      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?
        • Simple, because that is the last window you want to close.
        • nothing wrong with window.close(), but how did you open it, check how rolia opens its pop-up window or try
          [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.
            • 如果是这样,那就SAY YES吧
              不知道NETSCAPE怎么堕落到这种程度
              当初也跟IE一争高下的