how to call my object using addevent listner
<pre><code>obj = {
        click : function (msg ){
            alert(msg);
        }
    }
    var link = document.getElementById('link');
    link.addEventListener('click',obj.click,false);
</code></pre>

<p>The above code is working, but i need to pass the 'msg' in parameters how can i do? in case if i pass the parameter like this :</p>

<pre><code>link.addEventListener('click',obj.click('message'),false);
</code></pre>

<p>then, it is calling the function, event without clicking on the link. for this how can i my object to only get call on the click as well with parameter in the function?</p>

<p>Any one help me?</p>

<p>thanks</p>
