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