I write a jQuery event
$(window).unload(function() {
console.log('cool');
});
When I close the tab then unload event will be trigger.
But, When I change my Url http:/localhost/#home to http:/localhost/#profile.
Unload event doesn't work. Why?