I am trying to reload page. But getting prompt message.
location.reload();
$window.location.reload();
Is there a way to reload page without prompting a message?
I am trying to reload page. But getting prompt message.
location.reload();
$window.location.reload();
Is there a way to reload page without prompting a message?
You can use window.location = window.location.href;
In Jquery simply use -
$(selector).click(function(e) {
e.preventDefault();
$(window).off('beforeunload');
window.location.reload()
});