<script> var variable = false; if (typeof variable == "boolean") { alert("Boolean"); }else{ alert("NO Boolean"); } </script>