A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
How to set default image button
Joined: Aug 11, 2005
Aug 12, 2005 00:29:00
I have 2 image buttons on my jsp page. And I want to set one button to defualt. That is when the user hits an Enter key on this page that particular default button should get selected and do the action specified to it.
Need your suggessions.
Thanks for your help.
Joined: Oct 29, 2003
Aug 12, 2005 05:39:00
Not sure I understand, is this a form post? Or just a link to an action?
Joined: Feb 05, 2003
Aug 12, 2005 08:27:00
Browsers will render the page so that the first button in the form's html is the one that submits the form when the user clicks Enter.
A good workman is known by his tools.
I agree. Here's the link:
subject: How to set default image button
Hidden button is shown in FireFox
Setting an image Button to Default on a jsp page
Changing the display of an applet dynamically on a web application.
problem with jquery post request
How to implement 'Goto Home' button
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013