<html>
I pulled the following code off the internet. The idea is to intercept
various user screen events. IOn this case it would just return the x y
location of the cursor when the mouse is clicked in an alert. It doesn't run
for me - I get "Event is undefined" error message. What's up?
<script language="JavaS cript">
window.captureE vents(Event.CLI CK);
window.onclick= displayCoords;
function displayCoords(e ) {
alert("x: " + e.pageX + " y: " + e.pageY);
}
</script>
I pulled the following code off the internet. The idea is to intercept
various user screen events. IOn this case it would just return the x y
location of the cursor when the mouse is clicked in an alert. It doesn't run
for me - I get "Event is undefined" error message. What's up?
<script language="JavaS cript">
window.captureE vents(Event.CLI CK);
window.onclick= displayCoords;
function displayCoords(e ) {
alert("x: " + e.pageX + " y: " + e.pageY);
}
</script>
Comment