- From: Dave J Woolley <david.woolley@bts.co.uk>
- Date: Thu, 2 Aug 2001 18:25:11 +0100
- To: "'www-style@w3.org'" <www-style@w3.org>
> From: Jeffrey Yasskin [SMTP:jyasskin@hotmail.com] > > onclick="myonclickhandler()" Where are the objects there? > [DJW:] This defines a one statement instance method (Ecmascript has prototypes rather than class methods) of the element that contains the attribute. You can see this if you use self in the code. The onscript is executed in the context of the object, not in a global one. (I've used self in such instance methods, but I've never noticed it used elsewhere.) -- --------------------------- DISCLAIMER --------------------------------- Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of BTS. >
Received on Thursday, 2 August 2001 13:25:47 UTC