jQuery(document).ready(function($){ $( document ).ready(function() { $('a[target="_blank"]').removeAttr('target'); }); });