Possible duplicate:Is there a way in javascript to determine if an upload event is triggered by an update, the back button, or closing the browser?
Hello everybody
I have the following code
$(window).unload( function() { test(); });
test () is called when I close the window, and also if I update the window ..... How to determine if this is a refresh or close event. I need to call test() only when closing the event. Please help me...
refresh
close
test()
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1303641/More articles:C #: how do you feel about the content in Program.cs in form.cs? - objectMercurial: how to merge with manual control over changes and files? - mergeSorting by dictionary key inside a dictionary in Python - pythonHow to omit "THE" in search using PHP and MYSQL - sortingProject Management Software - project-managementHow do you generate a certain amount of prime numbers? - c #How to install python and dependency modules easily? - pythonvery simple java cms - javaDoes cscope have a search history or a search query stack function? - cMIDP 2.0 issues: $ method undefined for $ type - java-meAll Articles