One url I added as a menu item opens up in a new browser tab but another one I've just added opens in the tab I'm already in. I'm sure there is a simple answer as to how I get control to ensure consistent behaviour but I can't find it!
Thanks
Tim

Comments

megadrupal’s picture

I think you can use javascript, for example:

(function ($) {
	$(function(){
    $('#nav a[href^="http://"]')
        .not('[href*="megadrupal.com"]')
        .attr('target','_blank');
});
})(jQuery);