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