试试改为下面的形式:function jump(){
 var ls_filename;
ls_filename = "Tjjc_person3.jsp";
var change;
if(document.FORM3.radiobutton.value == '1'){ls_filename = "Tjjc_person1.jsp";}
if(document.FORM3.radiobutton.value == '2'){ls_filename = "Tjjc_person2.jsp";}window.location.href= ls_filename+"?action=update";
//return ls_filename;
}
<td height="18"><a href="javascript:jump">修改</a></td>

解决方案 »

  1.   

    运行后提示错误:document.FORM3.radiobutton为空或不是对象
      

  2.   

    <script language='javascript'>function jump(f_id,f_dqdm){if(form3.radiobutton.value == '2'){window.location.href= "Tjjc_person2.jsp?action=update&id="+f_id+"&dqdm="+f_dqdm;}
    alert(form3.radiobutton.value);}
    </script> <input type="radio" name="radiobutton" value="2" >
        <td height="18"><a href="javascript:jump(<%=id%>,<%=dqdm%>)">修改</a></td>
    上面语句中如果不代if(form3.radiobutton.value == '2')执行正常,带上运行后提示错误:document.FORM3.radiobutton为空或不是对象,好象程序不认识:document.FORM3.radiobutton为什么