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