Sometimes the simplest methods is the most powerful.
That is what I said here in my blog
Published: http://anmarsystems.com/About/Blog/?ID=77
Source: https://app.box.com/s/7fe0jq4gmc
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
<title >BotBoot </title >
<script type="text/javascript" >
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);
var c = a + b
function DrawBotBoot(){
document.write("What is "+ a + " + " + b +"? ");
document.write(" <input id='BotBootInput' type='text' maxlength='2' size='2'/ >");
}
function ValidBotBoot(){
var d = document.getElementById('BotBootInput').value;
if (d == c) return true;
return false;
}
</script >
</head >
<body >
Are you human? <br / >
<script type="text/javascript" >DrawBotBoot() </script >
<input id="Button1" type="button" value="Check" onclick="alert(ValidBotBoot());"/ >
</body >
</html >
Source: https://app.box.com/s/7fe0jq4gmc
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
<title >BotBoot </title >
<script type="text/javascript" >
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);
var c = a + b
function DrawBotBoot(){
document.write("What is "+ a + " + " + b +"? ");
document.write(" <input id='BotBootInput' type='text' maxlength='2' size='2'/ >");
}
function ValidBotBoot(){
var d = document.getElementById('BotBootInput').value;
if (d == c) return true;
return false;
}
</script >
</head >
<body >
Are you human? <br / >
<script type="text/javascript" >DrawBotBoot() </script >
<input id="Button1" type="button" value="Check" onclick="alert(ValidBotBoot());"/ >
</body >
</html >
Views 3,386
Downloads 1,127
CodeID
DB ID
ANmarAmdeen
610
Revisions
v3.0
Thursday
December
27
2018