Disable onClick functionality using JavaScript
<p>I am using onClick event for the image.</p>

<p>When I am disable for the particular case, I didn't know exactly how can disable the <code>onClick</code> functionality using JavaScript.</p>

<p>Sample code:</p>

<pre><code>&lt;td&gt;
    &lt;a onClick="fun()"&gt;
        &lt;html:img src="/caleder.jpg ... /&gt;
    &lt;/a&gt;
&lt;/td&gt;
</code></pre>

<p>calling fun:</p>

<pre><code>function fun() {
    // in fun I want to disable the img and onClick functionality
    // i.e when I click that img, then it can't perform the onClick event.
}
</code></pre>
