Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

focus for hyperlink  RSS feed

 
Smitha Prasad
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, onload i want to set focus to a hyperlink in my jsp. I have called the method getElementById('linkname').focus. The focus is being given, but the hyperlink is not highlighted. How to do this? Help.
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
handle onFocus() event and highlight the link from that. may be using diff color for the specific link.
 
Smitha Prasad
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot use a different colour, it has to have a higlighted box around it.
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put the link text in table cell and then highlight/change the bgcolor of the cell.
or show ur code how it is written then it would be helpful to understand the problem
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!