title: Javascript confirm box inside PHP Echo function
body: <p>I have a link inside PHP Echo function called "Delete". When user clicks on it, the delete.php page is called and the selected book is deleted from the database. So, I would like to insert a confirmation box  asking user if he is sure to delete the book but I don't know how to do it.</p>
  
  <p>This is the code:</p>
  
  <pre><code>echo "&lt;td&gt;&lt;a class = 'echo_link' href='delete-book.php?ID={$Book-&gt;ID}'&gt; Delete &lt;/a&gt;&lt;/td&gt; \n";
  </code></pre>