1
rated 0 times
[
8]
[
7]
/ answers: 1 / hits: 7038
/ 7 Years ago, thu, july 13, 2017, 12:00:00
I got some links in my HTML built by a WordPress shortcode. Unfortunately this shortcode do not include the target property and this way I cannot make the links open in a new tab.
I am not a programmer and I'm looking for a little JS to make some links under a specific class open in a new tab.
Something like:
if (a tag is under div.newTab class) onClick {window.open in a new tab}
Hope you guys understand it!
Thank you all.
More From » css