Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] window confirmation
- From: peter at brunone.com (Peter Brunone)
- Subject: [Javascript] window confirmation
- Date: Mon Mar 31 10:17:34 2003
I'm trying to keep an updated list of which browsers can be manipulated this way: if you feel like it, take a look at http://aspalliance.com/peterbrunone/impossible.asp and let me know about other browser versions that are not listed. Cheers, Peter |>From: "Dan Costea" <costea.dan@xxxxxxxxxxxxxxx> |> |> > Hai, |> > |> > when i try to close parent window (default IE) i get window |>confirmation. |> > How to close window parent without get window confirmation ? |> > |> > ps : IE 6 |> > |> |>This question was disscussed before. So, here are the conclusions |(works on |>IE6 too): |> |>----- Original Message ----- |>From: "Dan Costea" <costea.dan@xxxxxxxxxxxxxxx> |>To: <javascript@xxxxxxxxxx> |>Sent: Thursday, July 25, 2002 9:24 AM |>Subject: Re: [Javascript] Silent window.close... or a better idea |> |> |> > 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@xxxxxxxxxxx> |> > To: <javascript@xxxxxxxxxx> |> > Sent: Thursday, July 25, 2002 1:10 AM |> > Subject: [Javascript] Silent window.close... or a better idea |> > |> > |> > > |> > > 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@xxxxxxxxxx |> > > https://lists.LaTech.edu/mailman/listinfo/javascript |> > |> > _______________________________________________ |> > Javascript mailing list |> > Javascript@xxxxxxxxxx |> > https://lists.LaTech.edu/mailman/listinfo/javascript |> |>_______________________________________________ |>Javascript mailing list |>Javascript@xxxxxxxxxx |>https://lists.LaTech.edu/mailman/listinfo/javascript | | |_________________________________________________________________ |The new MSN 8: advanced junk mail protection and 2 months FREE* |http://join.msn.com/?page=features/junkmail | |_______________________________________________ |Javascript mailing list |Javascript@xxxxxxxxxx |https://lists.LaTech.edu/mailman/listinfo/javascript |
- References:
- [Javascript] window confirmation
- From: BEKIM BACAJ
- [Javascript] window confirmation
- Prev by Date: [Javascript] Form Cookie in NETSCAPE
- Next by Date: [Javascript] Any creative way to pull html content same way jsfiles are pulled
- Previous by thread: [Javascript] window confirmation
- Next by thread: [Javascript] Form Cookie in NETSCAPE
- Index(es):