How can I force refresh a page using javascript? But without resubmitting the form or prevent the confirmation message that says resending the information I previously submitted.

I need to accomplish this to prevent double entry of records.
Thanks in advance.
I’m using window.location.reload()
You can force change method to get by using
window.location.reload(true)orwindow.location.href = window.location.href.