Csvexport is a project mainly written in JavaScript, it's free.
a widget for jquery tablesorter for convert the table-content to csv-format
csvexport is a widget to the jquery.tablesorter-plugin
fetch the repo and open the ./demo/demo.html in your browser