var container = document.getElementById("gpViewCount"); if(container){ container.innerHTML = "67455"; }else{ document.write("67455"); }