Does anyone know of a way to call a php function from a JavaScript event handler? I need to be able to do a MySQL insert when an OnUnLoad event occurs but I can't seem to figure it out. Any help would be much appreciated. Thanks, Ross
Have you tried just using window.location to go to the script you want to run with some flag variable appended to the end of it. Probably not the best solution.
Yeah, I know that would work, but I'm really hesitent to do that because I hate it when web designers do that to me (if I'm trying to leave their site, I don't want to be redirected back in). -Ross
I was thinking that maybe you should use frames, and have the php code brought into the target frame?