How to change url after click on dialog button

How to change url after click on dialog button


Hi pls i want to logout user after confirming modal logout dialog.
Looks like this :
$(function() {
            $("#dialog-logout").dialog({
                autoOpen: false,
                bgiframe: true,
                resizable: false,
                width: 400,
                modal: true,
                overlay: {
                    backgroundColor: '#000',
                    opacity: 0.5
                },
                buttons: {
                     'Logout': function() {
                     var self = $(this);
// HERE I NEED GO TO URL FOR LOGOUT "modules/logout.php";
                        $(this).dialog('close');
                     },
                    'Cancel': function() {
                        $(this).dialog('close');
                    }
                }
            });
     $('#link-logout').click(function() {
         $('#dialog-logout').dialog('open');
            });
    });
I've found in past some code like $.ajax({ url: ""; but i cant figure
it out pls help