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.
[Back to original message]
|