wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes form button appearing selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "form button appearing selected" Watch "form button appearing selected" New topic
Author

form button appearing selected

Ronan Dowd
Ranch Hand

Joined: Jan 21, 2006
Posts: 84
I have a JSP page with a form on it with various elements on it (input fields etc). I also have a button named "Continue" at the bottom of my JSP.
Once the page loads - if i click on the screen (i.e. inside any of my input fields or inside where the form is defined) the Continue button immediately
changes to look like its been "selected" - i.e. has a thick black border around it. How can i stop this from happening - any help great.


SCJP 1.4 | OCWCD JEE 5
Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336
I am not quite sure, but I think this is the default behaviour on a browser for a submit button.

For e.g. if you chose to reply to this post, you would see the "Add Reply" button appearing as selected.

You might also want to check the css associated with your page.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Which browser and how is the button defined? Please be sure to use UBB code tags when posting code. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ronan Dowd
Ranch Hand

Joined: Jan 21, 2006
Posts: 84
Hi, I'm using IE6, the button is defined like below:



The style for my button is as below:

Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336
Please check your styles:

Black border:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: form button appearing selected
 
Similar Threads
button border appears on page click
Uploading Single File by Using enctype="multipart/form-data"
Dynamic field collapse issue in Form
Retaining Radio Button Values After Refresh
How view of table can be controlled on a Button