Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script>
function check_text() {
var a = document.getElementById('myInput').value;
a = a.toLowerCase();
var b = ["q", "w", "e", "r", "t", "z", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "y", "x", "c", "v", "b", "n", "n", "m"];
var y;
for (y = 0; y < b.length; y++) {
var c = new RegExp(b[y]);
var d = c.exec(a);
if (d != null) {
alert("the string contains a character!");
return;
}
}
alert("the string does not contain a character!");
}
</script>
</head>
<body>
type some text:<input type="text" id="myInput">
<p></p>
<button onclick="check_text()">check</button>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507