Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Re: Silent window.close... or a better idea
- From: javascript@xxxxxxxxxx (Peter Brunone)
- Subject: [Javascript] Re: Silent window.close... or a better idea
- Date: Tue, 24 Dec 2002 12:19:20 -0600
I'm not sure what you mean by "first window call", but here's a partial list of browsers and whether or not they will let you close the original window. -Peter |-----Original Message----- |From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On | |Hi there, | | The idea of closing opener window seams to work fine for IE |(Except for the first window call). Is there any work around for |netscape. | |THanx. | |Amol |--- In javascript@xxxxxxxxxxxxxxx, "Peter Brunone" <peter@xxxx> wrote: |> Dan, |> |> That is EXACTLY what I needed... although I just said |window.opener=top |> and then closed it. Thanks a million! I wonder when MS will patch |*that* |> little useful feature... |> |> Cheers, |> |> Peter |> |> ----- Original Message ----- |> From: "Dan Costea" <costea.dan@xxxx> |> |> > I had exactly the same problem few months ago :o) |> > Because of the security reasons, you cannot close a window without |> > confirmation, if you didn't open that window with your js. But if |you |> really |> > have no choice, you must lie the IE, by telling it that you |opened that |> > window you want to close! Here is the code: |> > |> > function cheatCloseWin () |> > { |> > win = top; |> > |> > // lying: |> > win.opener = top; |> > |> > win.close (); |> > } |> > |> > Dan. |> > |> > ----- Original Message ----- |> > From: "Peter Brunone" <peter@xxxx> |> > > |> > > I have an intranet application (IE 5.5 only) that needs to be |in a |> > > fixed-size window with no menu, status, etc. I can use a simple |> > > window.open, but unfortunately the user doesn't want an extra |window |> > around. |> > > I thought that if a page is the first one in the history, you |could |> > > window.close() without a confirmation, but that doesn't seem to |be the |> > case. |> > > Can someone suggest a way to either silently close the calling |window |> > > (which will be a new browser instance just for this app anyway) |OR alter |> > the |> > > existing window in the same way? Since this is restricted to |high-level |> > MS |> > > browsers, there has to be a usable option. |> > > |> > > Cheers, |> > > |> > > Peter |> |> |> |> _______________________________________________ |> Javascript mailing list |> Javascript@xxxx |> https://lists.LaTech.edu/mailman/listinfo/javascript | |_______________________________________________ |Javascript mailing list |Javascript@xxxxxxxxxx |https://lists.LaTech.edu/mailman/listinfo/javascript |
- References:
- [Javascript] Re: Silent window.close... or a better idea
- From: Amol <amol_n_mali@xxxxxxxxx>
- [Javascript] Re: Silent window.close... or a better idea
- Prev by Date: [Javascript] Re: Silent window.close... or a better idea
- Next by Date: [Javascript] Re: Javascript digest, Vol 1 #844 - 2 msgs
- Previous by thread: [Javascript] Re: Silent window.close... or a better idea
- Next by thread: [Javascript] Re: Javascript digest, Vol 1 #844 - 2 msgs
- Index(es):