<html>
<head>
<title>Example of the event.pageX property</title>
</head>
<body>
<script language = "JavaScript">
<!--
window.captureEvents(Event.CLICK);
function handle(evnt){
alert("The X coordinate of where the click event occurred is: " + evnt.pageX);
return true;
}
window.onclick = handle;
-->
</script>
<form>
Click in the web browser.
</form>
</body>
</html>
|