check if checkbox is checked javascript

JavaScript
var checkBox = document.getElementById(id_field);
			if (checkBox.checked== true){
            }if(document.getElementById('on_or_off_checkbox').checked) {
    //I am checked
}else{
	//I am not checked
}Check If Checkbox Is Checked Javascriptdocument.getElementById("checkbox").checked;
Source

Also in JavaScript: