W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

How to invoke clientx and clientx?

From: David Balch <david.balch@fassoc.co.uk>
Date: Fri, 5 Oct 2001 16:07:23 +0100
To: <www-dom@w3.org>
Message-ID: <FDEOKBKPIDBLGJFHBAJHCEGICDAA.david.balch@fassoc.co.uk>

I am trying to find mouse position with javascript, and cannot figure out
the DOM way to call clientx and clienty. I have versions that work with
particular browsers, but not all:

	document.mousetest.mousexy.value = event.clientX

	document.mousetest.mousexy.value = ev.clientX

Pointers to an appropriate guide would be much appreiciated - I have looked
at http://www.w3.org/TR/1999/WD-DOM-Level-2-19990304/events.html, but have
not known how to implement it.


Dave Balch
Received on Friday, 5 October 2001 11:08:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC