<input id="ask" type="text">
<input id="submit" type="button" onclick="askQuestion">
<script>
function askQuestion {
if (document.getElementById('ask').value /*contains*/ "time"{
/*tell time*/}
}
</script>
Okay so I have something similar to the code above. The only thing I want to know is how do I check for if the "ask" textbox contains the word time? Thank you in advance!