ONSUBMIT is not a valid event handler for a button of *ANY* kind.
(onsubmit is only valid in the <form> tag)
But actually, it would be a disaster if your code *did* work. Because the reload of the page would take place *BEFORE* the submit occurred, and the form would *NOT* submit!!!
In any case, I'm with Arthurakay: Yes, submitting the <form> *WILL* refresh the page. Are you perhaps saying that the <form> is inside a <frame> or <iframe> and you want the *entire* page to refresh, not just that frame???
If that's the case, doing window.location.reload()
won't help. That will only cause a refresh of the frame, which is going to happen anyway with the form submittal.
You could fix that. You could maybe do:
<form ... onsubmit="setTimeout('parent.location.reload()',500); return true;">
So the form submits and then a few milliseconds later the "parent" (the outer frameset or window) reloads.
But now the form submittal will be *forgotten*!! The server will try to send back an HTTP Response to a window (a frame really is a window) that no longer exists!!