Call a function when a button is clicked: ... object.onclick = function(){myScript};. Try it Yourself ». In JavaScript, using the addEventListener() method:.
確定! 回上一頁