I simply wish to pass variables (to the same page) using a custom javascript submit button.

I've broken down my code to the basics. This is what I am working with.

Code:
<form method="GET" action="form.html" name="form">

Name: <input name="yourname" type="text" value="">

<input name="Submit" type="submit" value="Submit">

<a href="form.html" onclick="javascript:document.form.submit();">Submit</a>

</form>
I can see (with use of the GET method) that the variables pass with the regular "input" button but not with the javascript button.

Can someone explain why the values fail to pass with the custom button and offer me an alternative method or a fix?

Thank You,

Serpent330