title: Can the form action attribute call a javascript function in an external javascript file?
body: <p>I have the form tag written as such:</p>
  
  <pre><code>&lt;form id="form" action="mail.php" method="post"&gt;&lt;!--form here--&gt;&lt;/form&gt;
  </code></pre>
  
  <p>Currently this poses some problems, so I am switching the form action to an AJAX solution, however, I would like the AJAX function to be in an external JavaScript file. I know that you can link the form action attribute to a file, but how would I tell the form to look at the specific function in the file?</p>
  
  <p>Any help is greatly appreciated!</p>