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