Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

onbeforeunload com mysql php

<script type="text/javascript">
window.onbeforeunload = function(){ 
    var id = document.reset.id.value;
    $.ajax({
        url: "Resetter.php",
        type: "GET",
        data: {'id':id},
        success: function (response) {
            alert(response);
        }
    });
}
</script>
Source by coderoad.ru #
 
PREVIOUS NEXT
Tagged: #onbeforeunload #mysql #php
ADD COMMENT
Topic
Name
5+2 =