Disabling repeated clicks on an anchor
<p>In JavaScript (not jQuery), is there a way of preventing a link from triggering an event more than once?</p>

<p>I'm iterating through some anchors and attaching an onclick event to each link, which then reveals some page content relevant to that link from a json file. The only problem is that a double click or repeated clicks outputs the same content again and again.</p>

<p>What's the best approach to prevent this, or should I re-write the script and change the anchors to submit buttons in order to add a disabled state?</p>
