87,910
社区成员
发帖
与我相关
我的任务
分享
if (key == 8) { /* key --> backspace */
var a = getPos(obj);
// obj.blur();
if (a == 0) {
nextip = parseInt(obj.name.substr(2, 1));
nextip = nextip - 1;
nextip = nextip <= 0 ? 4 : nextip;
thisName = "document.forms[0].ip" + nextip;
a = eval("document.forms[0].ip" + nextip + ".value.length");
setPos(thisName, a);
}
else {
thisName = "document.forms[0]." + obj.name;
// setPos(thisName, a - 1);
}
// window.event.returnValue = false;
}