Each table row has an onclick method which alerts some information about the tr DOM node that you are clicking on.

The offsetTop property is the distance, in pixels, between the top of the element (in this case, the row) and the top of the offsetParent (which should be the table). Rows further down in the table should return a greater offsetTop value.
one
two
three
four
five
six