This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to click text? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to click text?" Watch "How to click text?" New topic
Author

How to click text?

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 541

Hi,
we see in many mailInboxes clicking the text causes highlighting of the row and when it is double clicked, message opens. What is the JS code to have this functionality. Kindly reply.
Thanks and Regards,
Narendranath.


Cheers,
Naren (SCJP, SCDJWS and SCWCD)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
you have to give the tr and id tag
then you reference that ID:
onclick="document.getElementById('trID').style.background='#00DD00'"
&#ndblclick="document.location.href='theUrl.htm'"
[ April 13, 2004: Message edited by: Eric Pascarello ]
[ April 13, 2004: Message edited by: Eric Pascarello ]
 
 
subject: How to click text?
 
Threads others viewed
list box
exporting to CSV
Byte order and file transference.
Default Body Content
WA #1.....word association
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com