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