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