I am trying to pass arguments to a function inside my eventlistener for my school assignment in the code below. I am a newbie in JS and found out here Javascript event handler with parameters, that you can't just pass parameters to an eventlistener's function. But otherwise this thread wasn't much help. Simply because I don't really know JS and didn't understand it. How can I do it?
document.getElementById("Content_id").addEventListener("focus", focusFunction ("Content_id",event);});
function focusFunction(elID,event){
alert(elID+":"+event.timestamp);
}