I have a submit button with a onClick:
&
If you need to open a new window, you should use the window.open() method. window.location refers to the current windows address, and will only - when using window.location.reload() - reload the CURRENT window.
window.location.reload()