Your script runs before the DOM has been loaded. To fix this you can place your code in the window.onload
function like so:
window.onload = function() {
alert(document.getElementById("abc"));
};
An alternative is to place your script
right before the closing
No comments:
Post a Comment