F
FP
I think I've been staring at the computer screen too long.
Below is the exact code of my HTML page. If I uncomment the "If"
statement in the def function then I don't see the "abc" alert. Am I
writing the "If" statement incorrectly?
<SCRIPT LANGUAGE="JavaScript">
function def(){
//If(1 == 2){
//return false;
//}
}
function abc(){
alert('abc');
return false;
}
</script>
<HTML>
<BODY>
<FORM ACTION="list.php" METHOD=POST onsubmit="return abc();">
<table>
<TR>
<TD>
<INPUT TYPE=submit NAME="Submit" VALUE="Continue">
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
Below is the exact code of my HTML page. If I uncomment the "If"
statement in the def function then I don't see the "abc" alert. Am I
writing the "If" statement incorrectly?
<SCRIPT LANGUAGE="JavaScript">
function def(){
//If(1 == 2){
//return false;
//}
}
function abc(){
alert('abc');
return false;
}
</script>
<HTML>
<BODY>
<FORM ACTION="list.php" METHOD=POST onsubmit="return abc();">
<table>
<TR>
<TD>
<INPUT TYPE=submit NAME="Submit" VALUE="Continue">
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>