<style>
#s {
margin: 50px;
}
</style>
<input type="checkbox" id="s"><script>document.getElementById("s").indeterminate = true;</script>