45
rated 0 times
[
52]
[
7]
/ answers: 1 / hits: 155612
/ 15 Years ago, wed, april 29, 2009, 12:00:00
Let's say I have the following code:
<div id=link_other>
<ul>
<li><a href=http://www.google.com/>google</a></li>
<li>
<div class=some_class>
dsalkfnm sladkfm
<a href=http://www.yahoo.com/>yahoo</a>
</div>
</li>
</ul>
</div>
In this case, the JavaScript would add target=_blank
to all links within the div link_other
.
How can I do that using JavaScript?
More From » hyperlink