新手小白求教!如何获取document中的值
<html>
<head>
<title>Online Test</title>
</head>
<body>
<script language="javascript">
<!--
function check(){
var score=0;
if(document.forms[0].elements.novel.value=='1')
score=score+30;
document.write(score);
return 0;
}
-->
</script>
<h2>一、单选题</h2>
<form name="question" onSubmit="return check();">
1、我国第一部长篇章回体历史演义小说是:<br>
<INPUT type="radio"name="novel"value="1">《三国演义》
<INPUT type="radio"name="novel"value="2">《汉书》
<INPUT type="radio"name="novel"value="3">《水浒传》
<INPUT type="radio"name="novel"value="4">《西游记》 <p>
<p align="center"><INPUT type="submit"name="submit_button"value="确认提交"/>
</p><hr>
</form>
</body>
</html>
刚学JSP两天,我想获取novel中的值,然后判断对错,打出score,可是为什么每次提交后就会刷新?求指导