document.getElementById('btn').addEventListener('click', f1); document.getElementById('btn').addEventListener('click', f2); code example
Example: javascript onclick event listener
document.getElementById("myBtn").addEventListener("click", function() {
alert("Hello World!");
});