hasAttr
This commit is contained in:
parent
4471b2ad6e
commit
d986588f0e
|
@ -5,7 +5,7 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
$("a").each(function() {
|
$("a").each(function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
if (!$(this).hasAttr("href")) {
|
if ($(this).attr("href") === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$(this).attr("target", "_blank");
|
$(this).attr("target", "_blank");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user