How do I capture response of form.submit
问题 I have the following code: <script type="text/javascript"> function SubmitForm() { form1.submit(); } function ShowResponse() { } </script> . . . <div> <a href="#" onclick="SubmitForm();">Click</a> </div> I want to capture the html response of form1.submit ? How do I do this? Can I register any callback function to form1.submit method? 回答1: You won't be able to do this easily with plain javascript. When you post a form, the form inputs are sent to the server and your page is refreshed - the