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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using "Return" instead of clicking a button.

Status
Not open for further replies.

BadChough

Programmer
Dec 20, 2007
137
GB
It is a computer convention that a button is in some way highlighted when it can be activated by hitting the "Return" key. How is this link to the "Return" key made to operate on a web page, please.
 
By default. When you have a button in a form and have clicked on an element of the form, pressing enter will submit the form. There really is nothing to be done.

If you want to force the button so its ready when the page loads, you can use a javascript onload event to give focus to the button immediately. Instead of having to click on an element of a form.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top