function checkssn(gotoURL) {

高大全12022-10-04 11:39:541条回答

function checkssn(gotoURL) {
var ssn=form.username.value.toLowerCase();
if (checkUserName(ssn)){
x09 var open_url = gotoURL + username=" + ssn;
x09 window.open(open_url,'','status=0,directories=0,resizable=0,toolbar=0,location=0,scrollbars=0,width=322,height=200');
x09}
}

已提交,审核后显示!提交回复

共1条回复
10monkey15 共回答了15个问题 | 采纳率80%
function checkssn(gotoURL) {
var ssn=form.username.value.toLowerCase();
//将name为form的表单中的name为username的文本域的值转为小写
if (checkUserName(ssn)){
//通过checkUserName函数检测填入的值是否符合要求
x09var open_url = gotoURL + "?username=" + ssn;
x09//根据传入的地址,加上get传值将输入的值传递给服务器
x09window.open(open_url,'','status=0,directories=0,resizable=0,toolbar=0,location=0,scrollbars=0,width=322,height=200');
x09//打开一个322x200的新窗口
x09}
}
1年前

相关推荐