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