Code from MDC:
I've tried to bruteforce a correct piece of code, but to no avail. Eg:
<body onmousedown="sh owCoords(event) ">
=>
document.body.o nmousedown=show Coords(event);
Code:
<html>
<head>
<title>event object parameter example</title>
<script type="text/javascript">
function showCoords(evt){
alert(
"clientX value: " + evt.clientX + "\n" +
"clientY value: " + evt.clientY + "\n"
);
}
</script>
</head>
<body onmousedown="showCoords(event)">
<p>To display the mouse coordinates click anywhere on the page.</p>
</body>
</html>
<body onmousedown="sh owCoords(event) ">
=>
document.body.o nmousedown=show Coords(event);
Comment