Artjoms Kareniks,
http://learn.javascript.ru/searching-elements-dom
http://learn.javascript.ru/regexp-me...exp-str-search
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>1. uzdevums</title>
</head>
<body>
<script>
var count = 0;
var allQuest = 15;
function check(){
if (document.getElementsByName("q1")[0].value.search("e")!=-1) {++count};
var result = "pareizas atbildes "+count+" no "+allQuest;
document.getElementById("output").innerHTML= result;
}
</script>
1.Liliju <input name="q1" size="1" maxlength="1" type="text" /><br />
<div id="output"></div>
<input type="button" value="Parbaudit" onClick="check()">
</body>
</html>