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