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