I'm trying to open a page that let's the user know their form as been submitted in a pop up window that is centered on the screen. I have got the page to open in a pop up window but I can't figure out how to center the window with my current code (I was using a different js code that opened/centered the pop up but it also continued to open a new page with the same info).
Here is the code for the form currently...
<form method="post" action="php/sendmail.php" target="POPUPW" onsubmit="POPUPW = window.open('about:blank','POPUPW','width=600,height=175');" id="contact">
<h2>Name: (required)</h2><br />
<input name="name" type="text" size="55" class="required error"><br />
<h2>Email: (required)</h2><br />
</span><input name="email" type="text" size="55" class="required email"/><br />
<h2>Phone:</h2><br />
<input name="phone" type="text" size="55" /> <br />
<h2>Comments:</h2><br />
<textarea name="comments" rows="15" cols="47"></textarea><br />
<br />
<input type="submit" value="Submit" />
</form>
The page is currently up at http://www.concept82.com/DIS/contact.html
I know this is probably really simple but I'm new javascript and php coding. Thanks so much!!!