Open external site when dialog OK button clicked
Got the code below and I need to open a new tab/window with an external link when the user clicks the Ok button. (I do not mean a JQuery-UI Tab, I mean a browser tab)
How do I do that?
- $(document).ready(function(){
$('#WebFLIS').dialog({autoOpen: false,
resizable: false,
modal: true,
width: 500,
height: 'auto'},
buttons: {
Ok: function() {
$(this).dialog('close');
// Need to open external site in new tab/window here
}
Cancel: function () {
$(this).dialog('close');
}
}
);
$("[class*=WebFLIS]").click(function(e){
e.preventDefault();
$('#WebFLIS').dialog('open');
});
});
});