我有2个文本框和按钮的页面。 当我按下按钮时, 服务器上会出现一些事件。 但我需要检查是否文本框是空的大小写 。 所以我在客户点击 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
function Button1_javaEvent() {
var flag = false;
var message_str = "";
if (main_form.Text_login.value == "") {
message_str += "Enter the login";
message_str += "
";
flag = true;
}
if (main_form.Password_login.value == "") {
message_str += "Enter the password";
flag = true;
}
if (flag == true) {
alert(message_str);
}
else {
????????????
}
}