Feedback on: irt.org FAQ Knowledge Base Q945
Worth:
Not worth reading
Length:
Just right
Technical:
Just right
Comments:
Hye !!
I truly "love" your site, as well... I think what you do is so "clean" : you always try to tell people what version of Javascript your scripts use, and what to do for older versions !!
(I wanted tell you this before, as I am not often enough courageous to send mails... And I think it is not a bad thing to tell people when you like their work... ^^)
I just send you this mail about your script 945, as when I try to use it, I always continue to have the alert which asks me if I truly want to close the window... Well... Is this because I use IE5, or because I am trying it offline ? Do you have a solution ?
Thanks !!
K.
Worth:
Worth reading
Comments:
I tried the solution but I still got that annoying dialog.
Worth:
Very worth reading
Comments:
I've tried it in IE5 and Netscape 4.61 but it dosn't work.
When I try to close the main window the dialog popup appears!
It doesn't matter if it has history or not.
This is the very first time one of your scripts doesn't work for me that's why I decided to write, cause I'm very surprised.
The site is GREAT! Keep on doing it this way!
Worth:
Worth reading
Comments:
However it did not work.
Comments:
Kindly indicate if a solution to the question does not exist.
Worth:
Very worth reading
Comments:
The other window.close() closes other windows that you opened with script; however you, as well as I want to close the browswer window, not a window created by the browswer window. Since Microsoft IE is an .exe file, I will try to find the code to pass through the window.close() function. It should be the same thing as going to File => Close; give me time, I will figure it out. If not, I think perl might be able to close it, or some sort of cgi script... it must be possible!!! must be!!!! :]
Comments:
The following script will solve the problem.
<script language='javascript'>
var MainWindow = window.self;
MainWindow.opener = window.self;
MainWindow.close();
</script>
Thanks,
Richard
Worth:
Very worth reading
Comments:
This seems to work on NC 4+, IE 4+
<script language="JavaScript">
thisWin = window.self;
thisWin.opener = window.self;
thisWin.close();
</script>
Worth:
Very worth reading
Comments:
This seems to work on nc 4+ & IE4+
thisWin = window.self;
thisWin.opener = window.self;
thisWin.close();
Comments:
If you want to close people's main browsers, please consider this:
A scenario:
I surf to your page with my 1600*1200 sized screen with my browser at
971x697 with toolbars, statusbars, location bars and scrollbars
You open an 800x600 window, no chrome and close my main browser
I think you will hear the outrage from where you are sitting.
Have a splash screen if you must, but leave the user's main browser alone, PLEASE!?!
Worth:
Worth reading
Comments:
The way I close a pop-up window without getting that annoying dialogue box isn't a script but just a little "side-step" around it. I just build a frames page with the top frame size="0" and the second frame size="*". When you use a script like:
<a href="javascript: self.close()"> you don't get the dialogue box popping up because the pop-up window originated from a framed document.
It's "mickey mouse", but it works okay for my purposes.