<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("Сколько будет "+ 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;
Как сделать чтобы после правильного ввода перенаправляло на страницу пример.php? В js я 0. После правильного ввода, выходит диалоговое окно с надписью "true"