Would like to do some cleanup before going to the next webpage.
I know I can run a javascript function. I already do that. Is there a way to run some Php code in the middle of the javascript or is there a way to get the job done otherwise?
TIA
Not straight you can.. But you can use Ajax if you need to communicate with the server without page refresh. I myself have used Xajax to do that. Its an PHP ajax class that is very easy to use.
can you be more specific about what you're trying to do? i bet there's an easier way...