# How to change to new HTML page on Submit

**URL:** https://forum.kirupa.com/t/how-to-change-to-new-html-page-on-submit/293652
**Category:** web dev
**Created:** [July 31, 2009, 8:55pm UTC](https://forum.kirupa.com/t/how-to-change-to-new-html-page-on-submit/293652 "2009-07-31T20:55:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)
#### Post date: [July 31, 2009, 8:55pm UTC](https://forum.kirupa.com/t/how-to-change-to-new-html-page-on-submit/293652/1 "2009-07-31T20:55:44Z")

</div>

I have a form with these properties:

```auto

<form action="php/registration.php" target="_blank" enctype="multipart/form-data" method="post" name="EventRegistration" id="EventRegistration" onsubmit="return Verify(this);">

<input type="submit" class="submit" value="Continue" onSubmit="location.href='thanks_event.html'" />

```

This opens a new window for the PHP backend page, and is supposed to change the form page to a “thank you” page, but it never happens. Something interferes with the onSubmit event for the submit button. I figured it was the form onsubmit event but removing that doesn’t make any difference. Syntax error? Does anyone know?
