Madrid Blog , Spanish Culture Spain for Everyone: The History Buff’s Guide to Spain Posted on August 22, 2018 li.menu-item > a').click(function() { if ($(this).attr('target') !== '_blank') { window.location = $(this).attr('href'); } else { var win = window.open($(this).attr('href'), '_blank'); win.focus(); } }); } }); Recommended by Respected Food and Travel Journalists including Recommended by