Saturday, September 28, 2019

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

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...