You are here: Re: onunload is a great function but it generates popups! « PHP Language « IT news, forums, messages
Re: onunload is a great function but it generates popups!

Posted by Colin McKinnon on 08/25/05 11:27

Martin wrote:

> Does anyone know a way to use the htm <body onunload=foo()> function
> to execute a php script without creating another window (popup). This
> has some real applications for tracking visitors and getting accepted
> by the google monster.
>
> I am simply trying to write (append) a file with information on exit
> from my web site. Seems like that should not be a big deal.

Hmm intersting not seen that one b4.

You could set the src of an img or an iframe. Of course you'd need to give
the page enough time to send the request before allowing it to go
elsewhere.

I'd be interested to hear how you solve this one.

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация