var box;
window.onload=function () {
box=document.getElementById("box");
}
function aa () {
box.style.height="400px";
}
Is there any problem if the above code is replaced with the following code?
var box=document.getElementById("box");
function aa () {
box.style.height="400px";
}