我想知道为什么一旦页面加载,该函数btw_bijtellen ()
就会被调用。我想通过单击来调用它...
var $ = function (id) {
return document.getElementById (id);
}
function btw_bijtellen () {
window.alert("we want to calculate something after clicking th button");
}
$("bereken").onclick = btw_bijtellen ();