Tuesday, February 27, 2018

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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...