changing/stripping off url pointed by image using javascript
<p>Might be a very simple javascript injection question, but say I have an image html tag:</p>

<pre><code>&lt;a href="myfile.htm"&gt;&lt;img src="rainbow.gif"&gt;&lt;/a&gt; 
</code></pre>

<p>I wanted to perform a javascript, such that when clicked on the image, it doesn't go to the myfile.htm. In other words, I wanted to strip the a href which surrounds the img. How can I do this in javascript? Say that I have the following to reference the image tag:</p>

<pre><code>document.elementFromPoint(%f, %f)
</code></pre>

<p>f can be replaced by any double/float value</p>
