Home > front end >  JSP can't submit the jump
JSP can't submit the jump

Time:09-19

Write a page, in js calls to submit (); Anyway have no reaction
Have bosses know why?? Type to submit to again, but I need to judge in js, can't do that
 & lt; The script type="text/javascript" & gt; 
The function test () {
Var title=BBB. Title. The value;
Value; var content=BBB. The content.
If (title=="" | | title==" ") {
Alert (" please enter the title ");
return;
}
If (the content=="" | | conten==" ") {
Alert (" please enter the body content ");
return;
}
BBB. Submit ();
}
</script>
<body background="D: \ program files \ 189000148 Guo Si and \ Guo Si \ GuoSiCheng_01_48 \ \ GuoSiCheng \ WebContent \ images back. PNG" & gt;

Title: & lt;/td>




Text: & lt;/td>









Jump the JSP and the JSP in a file

CodePudding user response:

Type=the submit is the default form submit event
Do you want in the test () method via ajax to submit your request form to the background
  • Related