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