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