RE: Another question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This works because you have assigned a name to the .opener property which is
blank when you open a browser without script.  Script is now satisfied that
window was opened by script.

> -----Original Message-----
> From: Muhammed Mamedov [mailto:muhammed@xxxxxxxxxx]
> Sent: Monday, December 15, 2003 7:26 AM
> To: php-db@xxxxxxxxxxxxx
> Subject: Re:  Another question
>
>
> Really?
> What is the reason for that?...
>
> Muhammed.
>
> ----- Original Message -----
> From: "Duane Lakoduk" <dlakoduk@xxxxxxxxx>
> To: "'Constantin Brinzoi'" <aurel@xxxxxxxxxx>; <php-db@xxxxxxxxxxxxx>
> Sent: Monday, December 15, 2003 3:17 PM
> Subject: RE:  Another question
>
>
> >
> > You can avoid the prompt when using javascript to close the
> window if you
> > use this:
> >
> > function closeit(){
> > window.opener = top;
> > window.close();
> > }
> >
> > Now, window will close without prompting.
> >
> > hth,
> >
> > Duane
> > > -----Original Message-----
> > > From: Constantin Brinzoi [mailto:aurel@xxxxxxxxxx]
> > > Sent: Monday, December 15, 2003 6:15 AM
> > > To: php-db@xxxxxxxxxxxxx
> > > Subject:  Another question
> > >
> > >
> > > Is there a php function that closes a browser window?
> > >
> > > I know there is a javascript function (window.close), but I
> > > can't use it
> > > because it complains that the window is not opened by javascript
> > > (window.open).
> > >
> > > I looked over the function reference but I didn't find
> anything about
> > > this problem.
> > >
> > > TIA
> > > Constantin Brinzoi
> > >
> > >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.545 / Virus Database: 339 - Release Date: 27.11.2003
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux