I am aware of the following three ways to set up an onclick event in javascript:
<element onclick="myScript">
object.onclick=function(){myScript};
object.addEventListener("click", myScript);
But when I try to do the following it doesn't work:
object.addEventListener("click", myScript("value"));
How can I achive the desired result most elegantly?