|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
throwing variables
is this possible?..
when somebody exits out of my site, either by clicking the "x" or by going to another uri, i want a seperate PHP script to execute onExit - and the script that executes actually processes information from the individuals last actions as if exiting the site were hitting a submit button. how could i go about doing this? |
|
#2
|
|||||
|
|||||
|
RE: throwing variables
Well, you can do something like this....in the body tag of your page:
<BODY onUnload="leaving()"> then in the head of your document: php Code:
That will open up a popup window and you can do whatever you want in that script...then you can also have a goodbye type message in the popup window...only way I can think to do it off the top of my head.... |
|
#3
|
|||
|
|||
|
RE: throwing variables
yah that thought crossed my mind but i figured peoples natural reaction would be to close the window before it even loads cause that's what i do (hence the script won't execute)
hmm.. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > throwing variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|