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