I want to add multiple events on same functions because when user will fill form by himself either he can do direct keypress event or he can do onclick event. User can do anything so i want to add multiple events with my functions please help me to do that. I tried by myself but its not working.
editingArea.addEventListener("change", function(event){
localStorage.setItem(KEY1,editingArea.value);
},false);
this is my function. i tried it with addEventListener("change keypress keydown", function(event)
but it wont work for me.