This is absolutely effective when Google does not support document. formname. Submit!

Source: Internet
Author: User

The Code is as follows:

<Form name = "_ thisform" method = "Post" style = "padding-top: 5px" Action = "index. PHP "> <input type =" Submit "name =" Submit "value =" Submit "> <a href =" javascript: void (0) "onclick =" _ jumpto ('20140901 ') "> submit </a> </TD> </form> <SCRIPT type =" text/JavaScript "> function _ jumpto (pageno) {; document. _ thisform. submit () ;}</SCRIPT> many online users say that they need to use ajax to submit the request in Google's browser: $. post (); uncaught typeerror: Property 'submit 'of object # _ Jumpto
Onclick

In fact, Google does not support document. formname. note the green part of the submit () method: <input type = "Submit" name = "Submit" value = "Submit">; in fact, the name of a control is
Submit, so when using document. formname. when you submit (), Google determines that you are the document you have obtained. formname. the submit control is the submitted input box here. The solution is simple. You only need to change the name of the submit button. You cannot use submit! <Input type = "Submit" name = "tijiao" value = "Submit">

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.