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()