I have a html document on my local machine, I created a button using JQuery and set an on click for the button. When the button is clicked, I want the current index.html page refresh.
This following is in the script tags:
var refreshButton = '<button id="refresh"> Refresh </button>';
$body.append(refreshButton);
$('#refresh').click(function(){
refresh(forceGet);
});
i tried, location.refresh(); & window.location.refresh(); & refresh(); but they didnt work.