<style type="text/css"> .through { text-decoration: line-through; } </style> <a href="…" onclick="this.className='through';return false">…</a>