JavaScript delete or cancel
<p>I'm trying to create a alert box which prompts user whether to delete or cancel, when I'm clicking on delete button it is working fine but when I click cancel again my webpage is closed. Below is the enclosed function. Please help.</p>

<pre><code>&lt;SCRIPT language="JavaScript"&gt;
&lt;!--
function go_there()
{
    var where_to= confirm("Do you really want to go to this page??");

    if (where_to== true)
    {
        //closes the page
    }
    else
    {
        //Cancel the page and do not close the page
    }
}
//--&gt;
&lt;/SCRIPT&gt;
</code></pre>
