[Project_owners] [JS] addEventListener function parameter

Nickolay Ponomarev asqueella at gmail.com
Tue May 30 23:43:03 EDT 2006


On 5/30/06, Didier Ernotte <didier at ernotte.com> wrote:
> Maybe?
>
> button.setAttribute("ident", ixyzt);
> button.addEventListener('click', function (event){
> foo(event.target.getAttribute("ident")}, 'false');
> ixyzt++;
>
> Didier

That's correct solution, but the last param to addEventListener should
be a boolean, not a string. (Your 'false' gets passed as true
actually.)

Nickolay


More information about the Project_owners mailing list