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