I am using a solution supplied by William007 that takes user-input, appends it to a url, then launches that url. I am using it in Form Web Part in Sharepoint. It seemed simple enough, but when I use the code below, all I get when I press the button is a reload of the same page. When I hoover over the submit button, the url of the current page shows up at the bottom of the browser. What could I be missing to get this to work?
<input type="text" id="txtMyTextbox"/>
<input type="submit" value="submit" onClick="gotourl()"/>