Skip to content Skip to sidebar Skip to footer

Passing A Target To The Js Link() Method

How do I pass a target, _blank, to the js link method? x = 'my link to google' x.link('www.google.com') my link to google if its not poss

Solution 1:

If you really want to do it with link method you can use replace:

.replace('a href=', 'a target="_blank" href=');

Post a Comment for "Passing A Target To The Js Link() Method"