add a check function
function check(){
if (document.form1.flag.value=="")
return false;
else
return true;
}
function func_submit(myform){
myform.flag.value="anyvalue"
if (check()){
myform.target="_self";
myform.action="detail.asp";
myform.submit();
}
}
(more...)
it works for just one test field, if I have more than 2 text field , then
it will not work...
"let's say user just enter one text field, then press "enter" on the keyboard, the"Press" key is still working, am I right?
阿不错
"let's say user just enter one text field, then press "enter" on the keyboard, the"Press" key is still working, am I right?
阿不错