Friday, June 10, 2016

javascript - HTML : Unable to execute code in block, but able to run in console




Here is my code :















It is simple, but I can't get it to work.



When I copied the code inside




2)



window.onload = function () {

document.getElementById("id").onclick = function(){
alert();
}
}

No comments:

Post a Comment