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