fire a function after triggering a click event
<p>How can fix this :</p>

<pre><code>function Navigation(sender) {
    var senderID = sender.id;


    var answer = confirm("do you want to save your current layout ?");
    if (answer) {
        $("#loadingImg").css("display", "block");
        $("#&lt;%=Button1.ClientID %&gt;").click();
         //the next line is never fired
         if (senderID == "AboutClick") { setTimeout('ShowLoadingMsg()', 3000); } 

    }    
 }
function ShowLoadingMsg() {
   window.location="About.aspx";
}

&lt;a href="javascript:void(0)" id="AboutClick" class="menu" onclick="Navigation(this);" &gt;Navigate Click&lt;/a&gt;
&lt;asp:Button ID="Button1" runat="server" OnClick="btnSaveState_Click" style="display:none;" /&gt;
</code></pre>

<p>//Server side:</p>

<pre><code> protected void btnSaveState_Click(object sender, EventArgs e)
{

     SaveState();

}
</code></pre>

<p>The main problem is that this line is never fired what am i doing wrong here </p>
