How to prevent HREF (which calls JS function) from being triggered when "Enter" key is pressed?
<p>I am facing a problem.</p>

<p>I have a href which calls a javascript function "delete_element_on_page" when i click on it.</p>

<p>So when i click the HREF with my mouse, everything is fine and the function gets called.</p>

<p>However, because the HREF has focus, if keep hitting my enter key, the function gets called again and again and again leading to undesired outcomes.</p>

<p>How can i prevent this from happening?</p>

<p>I was thinking of 
1. Blurring the focus on the href when my function is called
--> I could do this, but this will mean I have to manually do this for every single HREF because jquery.blur can only be triggered at an individual element level.
--> Alternatively, is there a javascript equivalent of where I can do a universal Blurring, regardless of which element is in focus? </p>

<p>OR</p>

<ol>
<li>Deactivate enter key from triggering clicking of a HREF
--> Is this even possible? And if so, worth my while in terms of code complexity / compatibility etc..</li>
</ol>

<p>Thanks so much :)</p>
