I have the below code.
<button id="RefreshMe">Refresh Page</button>
<script>
jQuery('#PageRefresh').click(function() {
location.reload();
});
</script>
This works fine however my page has some hidden values in a form so instead of reloading http://www.example.com it reloads http://www.example.com?a=111 etc which is causing an error as the uri is to big. I want the user to go back to http://www.example.com rather than http://www.example.com?a=111 what else needs to be added?
1 Answer