Reworking Code so that Enter works
I am currently using the below code for a gadget on my site
<form onsubmit="return false;" action="#">
<input style="width: 214px; height: 21px;" name="urlField" size="25" type="text" /> <input id="goBtn" value="Enter" type="button" />
document.getElementById( 'goBtn' ).onclick = function()
location.href = "http://www.XXXXXX.com/2000/01/work-" + this.form.urlField.value.toLowerCase() + ".html";
However, I have had to disable the enter function through the onsubmit return false because it does not function in the same way as when clicking the enter button. Is there an easy way to retain functionality but to make pressing enter on the keyboard work in the same way as clicking the enter button?