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