Can't understand how to do it with javascript and jquery code
<p>Sorry guys for asking that dumb question but I have problem with that thing. 
Have such script, it should return true or false, but after drawing that html pop-up window and getting response from that methods. </p>

<pre><code>           $("#pageInfo a.btnDel").click(function () {

                    $("#cmsSmallPopUpWindowMessage").html("&lt;h2&gt;Do you really want to delete this page?&lt;/h2&gt;&lt;center&gt;&lt;div style='width:130px'&gt;&lt;ul class='bactions'&gt;&lt;li&gt;&lt;a id='cmsSmallPopUpWindowBYes' href='javascript:void(0)'&gt;&lt;span&gt;&lt;span&gt;Yes&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id='cmsSmallPopUpWindowBNo' href='javascript:void(0)'&gt;&lt;span&gt;&lt;span&gt;No&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class='archor'&gt;&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;");
                    $.blockUI({ message: $("#cmsSmallPopUpWindow"), css: { width: "530px", border: "0px", backgroundColor: "transparent"} });
                    setTimeout(function () {
                        $.unblockUI();
                    }, 6000);


                    $("#cmsSmallPopUpWindowBNo").click(function () {
                        $.unblockUI();
                        return false;
                    });


                    $("#cmsSmallPopUpWindowBYes").click(function () {
                        $.unblockUI();
                        location.reload();
                        return onDelete($(this).attr('href'));
                    });
                    return true; // this should change for "false" or "true" but after click on "yes" or "no" 


                });
</code></pre>
