User:HashJona/common.js: Difference between revisions
From Growtopia Wiki
More actions
Created page with "$(function() { $("a.no-blank").on("click", function(event) { if ($(this).attr("target") === "_blank") { event.preventDefault(); // Optionally open in the same tab window.location = $(this).attr("href"); } }); });" |
mNo edit summary |
||
| Line 1: | Line 1: | ||
$(function() { | $(function() { | ||
$("span.no-blank-traget").each(function() { | |||
$(this).closest("a").removeAttr("target"); | |||
}); | |||
}); | }); | ||