Validating JavaScript trigger BEFORE contextmenu triggers?
Posted: Fri Jan 27, 2006 1:14 pm
I'd like to return false and cancel the contextmenu via JavaScript on certain anchors. Since "oncontextmenu" does not validate I know I have to call a function. Problem is I do not know which events trigger BEFORE the contextmenu triggers. Then I'm going to throw in an alert but I can do that!
Right now I have something like this...
What can we do to achieve this and stay within the boundaries of validation?
John
Right now I have something like this...
Code: Select all
<script type="text/javascript">
//<![CDATA[
function oncontextmenu(event) {alert ("Alert");return false;}
//]]>
</script>Code: Select all
<a href="#" onmouse?????="preview();">link</a>John