debugging javascript

Ian Petersen ispeters-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Sep 1 02:35:54 UTC 2008


Serves me right for editing code in GMail.  I sent my preceding post
too early.  Sorry about the spam.

I think you want something like the following:

function MyMouseEvent(e) {
  this.e = e || window.event;

  this.x = this.e.pageX || this.e.clientX;
  this.y = this.e.pageY || this.e.clientY;

  this.target = this.e.target || this.e.srcElement;
}

Ian
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list