How to show alert box after the link is click
<p>Hello this is what i want to do. I want to show the alert box after the user click the link. My link is directed to another php page but it will come back again to the page where the link is found. How can i achieve this? Can someone give me ideas on how to do it?</p>

<p>this is what i tried but not working.</p>

<pre><code>&lt;?php

function fsa() {
  echo '&lt;div class="alert alert-success alert-dismissable" id="success-alert"&gt;';
  echo '&lt;strong&gt;Successfully posted!&lt;/strong&gt;';
  echo '&lt;/div&gt;';
}


&lt;a class='btn btn-info left-margin' href="dbf-import.php" onclick="fsa()"&gt;Import Database&lt;/a&gt;   
</code></pre>