i need help in function location.reload()
My code:
$('.class').on('click', function(){
location.reload();
alert("yea");
});
Problem is big, because webrowser first show alert "yea" and next to reload page.. I need call function when location end reload.
Someone can help me?