title: Express.js - Send an alert as a response while staying on same page
body: <p>I have 3 forms on a view that, when submitted, add new entries in a mysql database. I would like to send an alert saying "You have successfully added X" whenever an entry is added, without navigating from the page.</p>
  
  <pre><code>// Form to be Submitted
  &lt;form method="post" action="route/action/"&gt;
      &lt;input type="text" name="name"&gt;
  &lt;/form&gt;
  
  
  // Route
  exports.action = function (req, res) {
  
      client.query();
  
      // What kind of response to send?
  }
  </code></pre>
  
  <p>How can I send an alert? What kind of response should I send?</p>
  
  <p>Thank you!</p>