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>
Hi,

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:

IE:
	document.mousetest.mousexy.value = event.clientX

Mozilla:
	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.

Cheers,

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT