I was wondering if there was a way of adding javascript in every occurrence of a certain HTML tag, eg.
<td onmousedown="">
At the moment I just have it in every single one of my td tags in my table, but there must be a cleaner way. Something like adding javascript in the way CSS adds formatting.