and if you want the entire html document (not just the body): http://jsfiddle.net/pcKrg/1/
Just replace the alert( ... ); with an ajax call to a php script or whatever you want.
and if you want the entire html document (not just the body): http://jsfiddle.net/pcKrg/1/
Just replace the alert( ... ); with an ajax call to a php script or whatever you want.