Seville Blog , Spanish Culture My Seville: Gema Alastuey Posted on November 5, 2015 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