![]() Preserved Topic: Help with windows (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
![]() 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 |
![]() as far as I know, you *can't* close a window. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: Mi, USA |
![]() |
Maniac (V) Inmate From: under the bed |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: TipToToe |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: TipToToe |
![]() 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 |
![]() 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 |
![]() Yeah and closing windows like that in both browsers would kill you back button as well as your history. |
Paranoid (IV) Mad Scientist From: |
![]() Can't be done. |
Maniac (V) Inmate From: Houston(ish) Texas |
![]() According to my JS book, NS 2 would allow the main window to be closed. |
Nervous Wreck (II) Inmate From: |
![]() okay, thanks everyone |