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
1VALUE.com AG
Received on Friday, 5 October 2001 11:37:18 GMT

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