Call events with parameters

K

Kirsten

I want to setup the call to an event with parameters like this:

x = 3
row.onclick = doSomething(x);

where row is a well-defined TR element.

Can I do this? Everything I tried was setting up row.onclick = doSomething
but when I put the parameters the function is called in the initialization
and not everytime the row is clicked.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top