Posts: 808
Location: UK... where else?
|
Hello there.
I have a page on which there is a single form input section and an iframe, not much else. I would like to know how to do this:
once the user has typed in the text field they can just press enter and the 'go' button next to the field will be used, much like google (although i'm sure you didn't need that example).
At present when I hit enter the page just refreshes and my text field goes blank...
Any thoughts?
Here is the code for my button if it helps:
Code:
<input type="button" name="cmdGo" id="cmdGo" value="Go" onclick="javascript:doGo();" accesskey="g" />
|