Add confirm Popup
<p>I have this code in line:</p>

<pre><code>$action = "window.location = 'fruit_list.php.php?do=delete&amp;id={$fruitdata['id']}";
echo '&lt;a style="cursor: pointer" onclick="javascript:' . $action . '"&gt;Delete&lt;/a&gt;';?&gt;
</code></pre>

<p>Is there a way to add below code to make confirm box popup when link clicked?</p>

<pre><code> onclick="return confirm('are you sure?')"
</code></pre>
