Determining whether something occurs when an element is clicked
<p>Does anybody have ideas on a foolproof method of determining whether something happens (a javascript event, or in the simple case, an  tag), when a DOM element is clicked? </p>

<p>What are some possibilities of things to check for? For example, you could check for an <code>&lt;a&gt;</code> tag, an <code>onclick</code> event, etc.</p>

<p>In more complex cases, Javascript might simply detect where the click falls on the page and take action depending on that (i.e. the event is not associated with an element, but the whole page, and when the click occurs, it checks which element it falls on).</p>
