I have linkbutton with onclick event. I want cancel onclick event in FF dinamically, sometimes user can click, sometime cant click. I want cancel the onclick event in JS function fired from other control(dropdown, textbox). So, I want to write function, when sometimes cancel this event and sometimes dont cancel this event from function fired from another element on the page.
Example:
function someFCE(linkButtonID)
{
var linkButton = document.getElementById(linkButtonID);
if (//firefox//)
{
if (//something//)
//cancel event//
}
}
Where is //cancel event//, please help me write code to cancel this onclick event on FF.
And sorry my english.
If I understand right, I can cancel the event after click on the button. The problem is, the button has other JS validation and it is dangerous rewrite logic of this button.
If I add other click event with jquery which cancel this click event, this cancel event calls after this validation. So, is some possibility add cancel event which calls first before all validations or simply cancel onclick event? Only in FF
Thanks.