If an element has an "onclick" attribute, it should also have an "onkeypress" attribute. This helps ensure that users who only have the keyboard can access the features as well.
<a onclick="alert('Hello, there');" href="#">Open an alert.</a>
<a onclick="alert('Hello, there');" onkeypress="alert('Hello, there');"
href="#">Open an alert.</a>