title: Symfony 2 add confirm message to action
body: <p>I am wondering if there's a way to add confirmation message before executing an Action in <code>Symfony2</code>.</p>
  
  <p>I know that i can add a confirm message in <code>html</code> like this :</p>
  
  <pre><code>&lt;a href = {{ my_route }} onclick="return confirm('Are you sure do you want to delete this file?')&gt;" 
  </code></pre>
  
  <p>but the problem is that my page will not be included in any <code>twig</code> file, so can i add the confirm message in my <code>Controller class</code> ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>As i said in the comments my page will be used in Salesforce as a field named Details : I've already add my_url as javascript like this: </p>
  
  <p><code>Details= "javascript:document.onClick = window.location.href = my_url"</code> </p>
  
  <p>and it works, but i still don't know how to add the confirmation message
  to <code>Details field</code></p>