Submit and Button type of buttons in JSP __js

Source: Internet
Author: User
Tags button type

The type of button in JSP has submit, button,reset three kinds.

The button is a normal button and can have its response event.

Reset from the literal can be seen is the meaning of reset, click on the contents of the form to empty.

The

submit   submit button, which you can use the action= "*****,jsp" Item of the form to jump to another page. When a form has multiple submit buttons and needs to jump to a different page, the action is emptied   then the script is used to jump. < Script   language =   "javascript " >  
<!-- 
Function  &nbs P; check () ... { 
frm.action   =    "checkname.jsp " &NBSP;
}  
function    mysubmit ()     ... { 
frm.action   =    "zhuce.jsp " &NBSP;
}  
</Script >  
< Form   method = Post   action =   " "    na me =   "frm " >  
< Input   type =   "submit "    onc lick =   "check ()  " >  
< Input   type =   "submit "   &nb Sp;onclick =   "Mysubmit ()  " >  
</form >  

PS: Reference csdn--http://topic.csdn.net/u/20070823/16/a612f99b-b283-47ff-a64b-ca572e4dde3a.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.