Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

non-textfield form submit with enter

Status
Not open for further replies.

expostfacto

Programmer
Sep 10, 2001
31
US
I want to allow users to move from page A to page B by hitting enter rather than clicking on a link, and w/o having to tab around the page. I thought I could do this by making the link into a form whose action is page B, but apparently enter won't submit without a textfield present. Anyone know a way around this in IE 5+ and/or NN 6+?
 
wont <input type=hidden> work? ***************************************
Party on, dudes!
[cannon]
 
it's not that you need a text field, it's that you need the form to have focus, and if there is nothing on the page to give the form focus, then you can't press enter.

you might be able to get around this with some javascript, but i can't think quite how it would work without double checking. i know you can give whatever you want focus with javascript, but if you could give a hidden field focus i don't know...

anyway, i need some sleep, so if by tomorow morning no one else has helped, i'll try to find a way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top