function contor() { var valDiv = "Visitors - 1
Hits   - 1"; document.getElementById("id_ctr").innerHTML = valDiv; } window.onload = contor;