JavaScript Mouse alert on page click
Mouse alert on page click
<SCRIPT LANGUAGE=JavaScript>
<!--
var message="Click?";
function click(e) {
if (document.all) { if (event.button == 1) { alert(message); return false; } }
if (document.layers) { if (e.which == 3) { alert(message); return false; } } }
if (document.layers) { document.captureEvents(Event.MOUSEDOWN); }
document.onmousedown=click;
// -->
</SCRIPT>