I am making a name picker and I want to detect if your user has input a name or if they are just messing with the website. Is there a way to do this? Code:
<html>
<textarea id="names"></textarea>
<input type="submit" value="Pick" onclick="onClick(this)">
<p id="chosen"></p>
</html>
<script>
function onClick(x) {
//Your code
}
</script>