Preserved Topic: Help with windows |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
posted 09-30-2000 15:24
I need to know the code to make a new window when the website loads and then close the old window without any messages. Can any one please help me?? |
Maniac (V) Inmate From: under the bed |
posted 09-30-2000 18:58
as far as I know, you *can't* close a window. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-01-2000 02:49
You can close windows that you open using JS but I don't think you can close the original window without the confirmation |
Maniac (V) Mad Scientist From: Mi, USA |
posted 10-01-2000 04:19 |
Maniac (V) Mad Scientist From: Mi, USA |
posted 10-01-2000 04:21 |
Maniac (V) Inmate From: under the bed |
posted 10-01-2000 04:40
being able to close a window that you didn't cause to open crosses a pretty significant security issue. For that reason I don't think it's possible. |
Maniac (V) Mad Scientist From: Mi, USA |
posted 10-01-2000 04:47 |
Maniac (V) Mad Scientist From: TipToToe |
posted 10-01-2000 04:48
Vogon : Not in IE anyways, not without the confirm box. "This window is attmepting to close your other open browser window...Say yay or nay". It makes sense. |
Maniac (V) Mad Scientist From: Mi, USA |
posted 10-01-2000 05:04 |
Maniac (V) Mad Scientist From: TipToToe |
posted 10-01-2000 07:10
I think you're confusing the document and the window. They are different things. The document (url, page, meta-refresh names etc) are not the window object. |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 10-01-2000 10:30
In Netscape at least, the history file is associated with the open window. If I visitied your site, and you opened a new window and closed my original, I would lose my listing of where I had been and miss that site I was at before deciding to visit your site briefly. Then I would be pissed at you, of course! |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-02-2000 20:11
Yeah and closing windows like that in both browsers would kill you back button as well as your history. |
Paranoid (IV) Mad Scientist From: |
posted 10-02-2000 20:56
Can't be done. |
Maniac (V) Inmate From: Houston(ish) Texas |
posted 10-02-2000 21:17
According to my JS book, NS 2 would allow the main window to be closed. |
Nervous Wreck (II) Inmate From: |
posted 10-02-2000 21:30
okay, thanks everyone |