a href\u003d # onclick\u003d document.forms 0 .submit()





We can do this by using a form and a submit button but there is no point in using a form for a hyper linking of pages. So here are some examples of using buttons to link different pages.Another way of linking button. . E.g. as opposed to document.forms[xxx].submit(). Is there some generic ajax submit I could use.-----Original Message----- From: Martin Grigorov [mailto:[hidden email]] Sent: Thursday, January 20, 2011 9:01 AM To: [hidden email] Subject: Re: Submit form from other form onClick. Checkbox Submission .Submit. You can submit a form with one line of JavaScript, no submit button needed: document.forms[0].submit(). Warning: as I just found out (unfortunately) if you run this JS on Quora, it will log you out.

function submitWithHref(obj) var theHref obj.href document.form2.action theHref document.form2.submit() with many thanks to devnull69 from codingforums. "google-site-verification":"4U1OC1LwZlFHAehLhCV4rt3YzWIAyF7Gb0XqlaVEhE", "msapplication-task":"name u003dSubscribeaction-uriu003dhttp"msapplication-tooltip":"Startup and Technology News", "msapplication-window":"width u003ddevice-widthheightu003ddevice-height" Click here for a complete JavaScript Reference, including array, string, document. window, and more.Description. onClick. Code is executed when the user clicks on the submit button. By returning false in this event, you may cancel the form submission. eg: