- 论坛徽章:
- 0
|
<script language="JavaScript">
for(var i = 0; i < USERS.length; i++)
{
document.write("<tr>");
document.write("<td height='22' bgcolor='#EAEFE8'>", "<input name='chk_user", i, "', type='checkbox' id='chk_user", i, "' value='chk_user'>", "<input type='image' src='/images/ftv2folderclosed.gif' alt= 'user_",USERS[0],"' onClick='goto_usrpro(",USERS[0],")'>", "</td>");
for(var j = 1; j < USERS.length; j++)
{
if(j ==1)
document.writeln("<td align='center' bgcolor='#EAEFE8'>", USERS[j], "</td>");
}
document.writeln("</tr>");
}
</script>
function goto_usrpro(user_name)
{
var f=document.forms[0];
alert(user_name); //////////???????
//f.usr_id.value = id+1;
//alert(f.usr_id.value);
f.to_pro_page.value = "tousrpropage";
alert(f.to_pro_page.value);
return true;
}
请问如此的情况下,goto_usrpro函数中的alert(user_name)为什么会出错? |
|