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