Sunday 3 June 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...