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