请帮忙看那里有问题了?数值传递的问题 高难
function submit_b(){
var a=document.getElementsByName( "radiobutton ").length
for(var i=0;i <a;i++)
{
if(document.getElementsByName( "radiobutton ")[i].checked)
var ab=document.getElementsByName( "radiobutton ")[i].value.split( "### ");
b=ab[0];
c=ab[1];
}
top.frames[ 'rbottom1 '].location.href= '3mtrans.asp?creno= '+b;
return true;
}
</script>
------解决方案--------------------function submit_b(){
var a=document.getElementsByName( "radiobutton ").length;
var b = ' ';
var c = ' ';
for(var i=0;i <a;i++)
{
if(document.getElementsByName( "radiobutton ")[i].checked) {
var ab=document.getElementsByName( "radiobutton ")[i].value.split( "### ");
b=ab[0];
c=ab[1];
}
}
top.frames[ 'rbottom1 '].location.href= '3mtrans.asp?creno= '+b;
return true;
}