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