I have a button, clicking on it, will to open up a new tab.
$('#got-it').click(function(){
$('#myModal').modal('hide');
var ajax = $.ajax({url: '/api/{{ $cpe_mac }}/gateway'});
ajax.done(function (gw) {
$('#ajaxActivateFB').fadeOut();
$('#gw-table').fadeIn();
var url = "https://www.facebook.com/wifiauth/config?gw_id="+gw['gw_id'];
window.open(url, '_blank'); <----- ONLY works in Chrome
});
});
I am not sure why this line :
window.open(url, '_blank'); <----- ONLY works in Chrome, but not IE, or firefox
How do I trigger a new tab that will work on all browsers ?