I need my webapp to send an insert statement when the browser or tab is closed.
I am currently using the code below:
function onExit() { var fd =