How to call onclick event on confirm message alert box?
<p>I am using a javascript </p>

<pre><code>function ValueChanged()
{           
    if (document.getElementById("&lt;%=isDirty.ClientID %&gt;").value != document.getElementById("&lt;%=rdbQuestiontype.ClientID %&gt;").value)     
    {

       if (window.confirm('Your changes are not saved. Do you want to save your changes before you exit.'))
           return false;
       else
           return true;
    }
}
</code></pre>

<p>this java script i am calling on <code>OnClientClick="return ValueChanged();</code></p>

<p>I have a Save button on the same page i want to save the data when client click on OK button of cinfirm alert OK btn. Means my <code>onclick="btnsave_Click"</code> event also call and my data get save on confirm message OK btn.</p>
