<html>
<head>
<title>双重选取(if)</title>
</head>
<body>
<script language="javascript">
<!--
souce = prompt("请输入您的成绩:");
document.write("您的成绩为:",souce,"<br>");
if(souce >= 60 ){
document.write("您及格了!")
}else{
document.write("你未及格!")
}
//-->
</script>
</body>
</html>