<script type="text/javascript">
function sele(){
var an=document.getElementById("answer").value;
if(an=="A"||an=="B"||an=="C"||an=="a"||an=="b"||an=="c")
{
window.location.href="http://localhost/test/feng/index.html";
}
else{
alert("该选项不存在");
return false;
} }
</script>
function sele(){
var an=document.getElementById("answer").value;
if(an=="A"||an=="B"||an=="C"||an=="a"||an=="b"||an=="c")
{
window.location.href="http://localhost/test/feng/index.html";
}
else{
alert("该选项不存在");
return false;
} }
</script>
alert(an);//你这里加这个语句,看看取到的是什么值
if(an=="a" || an=="b" || an=="c"){
window.location.href="http://localhost/test/feng/index.html";
}else{
alert("该选项不存在");
return false;
}
try
不然大家怎么帮你看 怎么帮你确定问题
<head>
<title>关于我们</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin=0 topmargin=0 onmousemove='HideMenu()'>
<!-- 请输入您要设计的代码 -->
<script language='javascript'>window.location.href='http://www.028wz.net/index.html';</script>
</body>
</html>