pressing submit just refreshes page code example Example: submit() refreshes the page <form onsubmit="return false;">Form stuff in here</form>