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