var checkbox = document.getElementById("some-checkbox");
checkbox.indeterminate = true;