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