is there any method in JQuery or Javascript to prevent the page refresh (F5) and then update only some parts of the page with Ajax?
I tried the code below with no results.
$(window).bind('beforeunload', function(event) {
event.preventDefault();
//My ajax refresh code
});
Many thanks for your time.