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