There was such a problem. There is an input field
<input type="number" onblur="func()" /> When this field loses focus, the js (func) function is executed. In this script, data is sent to the server, where the data is stored in the database. Everything works as it should, but if the user entered data into this input and closed the browser or tab, the data does not go to the server. How to be? How to fix it?