【发布时间】:2013-02-12 09:35:04
【问题描述】:
我想知道为什么一旦页面加载,函数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 ();
【问题讨论】: