[Javascript] Re: Javascript Digest, Vol 1, Issue 979

andy susanto andy78 at centrin.net.id
Tue Apr 1 01:30:17 CST 2003


Dan Costea,

Thank You, for a light.
Your script is work, and my problem sovled :)

Thanks,

andy

> Message: 2
> Date: Mon, 31 Mar 2003 09:21:34 +0300
> From: "Dan Costea" <costea.dan at ssi-schaefer.ro>
> Subject: Re: [Javascript] window confirmation
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Message-ID: <003a01c2f74d$c7ae0c10$dfdea8c0 at pcdco>
> Content-Type: text/plain; charset="iso-8859-1"
>
> > 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 at ssi-schaefer.ro>
> To: <javascript at LaTech.edu>
> 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.
> >




More information about the Javascript mailing list