<script language= "jscript ">
function denglutis(f1.yhm.value)
{
alert(f1.yhm.value+ "欢迎你的加盟!! ")
我每次调试的时候都是f1.yhm.value这个没有 值 是 怎么回事哦,大虾帮帮我
}
</script>
<form id= "f1 " action= "zhuce.asp " method= "post " /> 表单F1
<input value= " " type= "text " name= "yhm " size= "8 " maxlength= "8 " /> </td> 文本筐yhm
<input name= "提交 " type= "submit " class= "STYLE2 " value= "登陆 " onclick= "denglutis(f1.yhm.value) " />
函数调用有问题
------解决方案--------------------
<script language= "jscript ">
function denglutis(yhm)
{
var yh=yhm;
if(yh== "smcao "|| yh== "wsj ")
{
alert(yh+ "您好!! ");}
else
{alert(yh+ "您还没有注册呢!! ");
}
}
</script>
是这样写的吗??