[Javascript] Re:"To be or Not to be" an Object

Bill Marriott bill.marriott at optusnet.com.au
Wed Jul 4 15:01:47 CDT 2001


Thanks a lot ppk

Your changes have made my day.
I think the problem was that I was using If instead of if , which didn't
become obvious to me until I used your code.

Obviously too many years in MS Access where If is a very common word.

Bill



----- Original Message -----
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: <javascript at LaTech.edu>
Sent: Wednesday, July 04, 2001 10:52 PM
Subject: Re: [Javascript] Re:"To be or Not to be" an Object


> >
> >function ClosePop()
> >{
> >    alert (ReportPick);
> >   alert (cropcheckHelp);
> >
> >    If (typeof(ReportPick) != "undefined")
> >       {
> >           If (ReportPick.closed == false)
> >               {
> >                    ReportPick.close();
> >               }
> >       }
>
> Try
>
> if (ReportPick && !ReportPick.closed)
>    ReportPick.close()
>
> ppk
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list