How to add eventListener each separate li into each separate function?
<p>I am using the function, to add each li into each function, using addEventListener. According to me, on click on each li, should call each separate function. how can i add the li's separately each functions?  any one can help me..?</p>

<pre><code>window.onload = function(){

            var myLi = document.getElementById('ul').getElementsByTagName('li');

            for(i=0;i&lt;=myLi.length;i++){
                myLi[i].addEventListener('click','call'+[i],false);
            }

            function call(){
                alert('function one called');
            }

            function call2(){
                alert('function two called');
            }

            function call3(){
                alert('function three called');
            }

        }
</code></pre>
