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