<input type="checkbox" id="s" checked><script>document.getElementById("s").indeterminate = true;</script>