View Full Version : How disabled onclick????

08-26-2006, 03:34 AM
Hi everybody
I have <table> </table> tag and it have an event onclick which is programed by javascript, I can't change this code.

I have caught event onclick like: <table onclick = "alert('HI!!')">
So, when I click thi table in the browser, 2 event fire:
One: show alert
Two: the action which programed
Now I want disable event onclick when click this tag.
Are there any solution???
Please, help me!


08-26-2006, 05:11 AM
We would need to see the code that adds the other onclick event handler to the <table>.

08-27-2006, 09:20 AM
Is this what you are looking for?? you can change the window.location thing.

<title>TABLE FUNCTIONS</title>
<script language="javascript" type="text/javascript">

function yourfunction() { window.location="location.htm"; }



<table onclick=" alert('HI!!'); yourfunction();" border="1">

<td colspan="2" rowspan="2">HI!</td>



08-27-2006, 02:50 PM
Thanks everybody. I capitulate!
But I'll solve it later.
Problem is: ActiveX give some code which I don't want. After many hours works, I saw them specifically. Just remove them :rolleyes:.
Not easy, I will solve this problem later

Now, I am having a project.

Thanks everybody