javascript to check html checkbox code example Example: dom check a checkbox document.getElementById("myCheck").checked = true;