I have an HTML table with a large number of rows. I would like one particular row to be visible on the screen at all times, locked at the bottom of the page if the row's actual position is currently scrolled off the bottom of the screen and locked at the top of the page if it's position is actually currently scrolled off the top of the screen. While the row's actual position is visible on the screen then it should scroll normally as part of the table.
How can I achieve this using CSS and JavaScript?