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