dialog box mailto

dialog box mailto

Hey there, I'm new to the forum and jQuery in general

I'm trying to get a dialog box button to use a mailto: function

Here's about as far as I got

$('#dialog').dialog({
                    autoOpen: false,
                    width: 600,
                    buttons: {
                        "Compose New": function emailForm(){
                        var email = "email@email.com";
                        var mailto_link = 'mailto:'+email;
                        },

                        "Cancel": function() {
                            $(this).dialog("close");
                        }
                    }
                });