This is what I have currently:
$('#dialog').dialog({autoOpen: false, buttons: [{
text: 'View Here', click: function() {
$(this).dialog('close');
window.location.hash = $(this).attr('tag');
}
}, {
text: 'View Original',
click: function() {window.location = $(this).attr('href');}
}
]});
If you click “View Original”, the site loads directly. I want the user to be able to use the regular Command- or Ctrl-click to open the link in a new tab. How can I do this?
seems like this works,
demo
well, only on Chrome…..