onbeforeunload com mysql php

Solutions on MaxInterview for onbeforeunload com mysql php by the best coders in the world

showing results for - "onbeforeunload com mysql php"
Stanislas
26 Sep 2020
1<script type="text/javascript">
2window.onbeforeunload = function(){ 
3    var id = document.reset.id.value;
4    $.ajax({
5        url: "Resetter.php",
6        type: "GET",
7        data: {'id':id},
8        success: function (response) {
9            alert(response);
10        }
11    });
12}
13</script>