[Javascript] onclick and functions

David Hucklesby davidh126 at writeme.com
Thu Aug 17 11:56:48 CDT 2006


On Mon, 14 Aug 2006 08:53:59 -0400, tedd wrote:
> At 11:54 AM +0530 8/14/06, Rakesh Pai wrote:
>> On 8/12/06, Paul Novitski <paul at juniperwebcraft.com> wrote:
>>
>>> At 07:30 AM 8/12/2006, Rakesh Pai wrote:
>>>> That said, using a addEvent function is a cleaner way to
>>>> attach handlers to an event.
>>>>
>>>
> <http://www.quirksmode.org/blog/archives/2005/08/addevent_consid.html>
>
Hi Tedd,
You may like to look at the solution given by Dustin Diaz[1]. It not 
only flushes the EventCache on unload, but preserves the value of
"this" in IE. I find that it greatly simplifies event handling. YMMV.

Cordially, David.
[1] <http://www.dustindiaz.com/rock-solid-addevent/ >
--





More information about the Javascript mailing list