Overlapped tags with onClick()

wxdqz

New Member
Here`s the situation.
I put a link into the table`s cell.

I proceed onclick events for both the cell and the link.
They both result the same action that submits a form. Actually, i need the link only for compatibility with older browsers.

The problem occures when the link is clicked (in some newer browsers, like IE) the form is submited twice.
How could i avoid this "double submitions" without detecting the version of browser?

Here is the example which causes the problem
<td onClick= "document.FormName.submit();return false;">
<a href=http://www.webdeveloper.com/forum/archive/index.php/"" "onClick="document.FormName.submit();return false;">test submit</a></td>
...

Thanks in advance for any suggestion
 
Back
Top