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

Re: How to invoke clientx and clientx?

From: Clover Andrew <aclover@1value.com>
Date: Fri, 5 Oct 2001 17:33:40 +0200
Message-ID: <D58B0195B58937489E89124469E57CA249D990@EX1.1value.com>
To: <www-dom@w3.org>
David Balch <david.balch@fassoc.co.uk> wrote:

> Mozilla:
> document.mousetest.mousexy.value = ev.clientX

This is indeed the standard DOM way of reading it. Lack of browser
support is another issue - which browsers are you concerned with?

Note that clientX isn't generally especially useful unless you happen to
know that your page hasn't been scrolled. Quite why a screen-relative
and window-relative position were included in DOM events but not a
page-relative one (which is the one useful to web page authors 99% of
the time) is quite beyond me.

Andrew Clover
Technical Consultant
Received on Friday, 5 October 2001 11:37:18 UTC

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