You are here: irt.org | FAQ | JavaScript | Pointer | Q1012 [ previous next ]
Try:
<SCRIPT LANGUAGE="JavaScript1.2"><!--
function myFunction() {
alert('Hello World');
return false;
}
document.onMouseDown = myFunction;
//--></SCRIPT>Works over the document, links and buttons.