Hello,
I have a problem where the onClick of a table row will activates a
window.location event, and inside a cell in that row, an image onClick
event shows/hides a div.
The problem is that when you click on the image, it briefly shows the
div, and then reloads the page to the window.location url.
Is there a way of preventing the onClick of the row (<tr>) from doing
it when the image is pressed?
Here is my code:
<tr class="mouseover" onClick="window.location='xxx'">
<td><img src="images/edit_icon.png" border="0" title="Rename..."
OnMouseOver="this.className='cursor';"
onClick="showhide('rename_form');">
<DIV ID="rename_form" class="showhideHidden" STYLE="position:absolute;">
<form action="xxx" method="post">
<input name="name" type="text" maxlength="128" value="xyz">
<input name="submit" type="submit" value="Rename">
</form>
</DIV>
text in that cell
</td>
<td>2</td>
<td>3</td>
</tr>
Any help, even if it is to say "No you can't do it, get rid of the tr
onClick event", would be greatly appreciated.
Thanks,
Iain.