Forum Moderators: open

Message Too Old, No Replies

target attribute for a link collection

targeting link collections

         

eveningwalk

6:21 am on Jul 18, 2006 (gmt 0)

10+ Year Member



How do I set the target attribute for a collection of links (anchor tags) within a <span> tag. I cannot set the target attribute for the anchor tags - as the tags themselves are dynamically javascript generated. I can't modify the javascript either. So the page fragment looks like this:

...
...
<span>
<script>

this script generates 5 text links (<a href="">...</a>)

</script>
</span>
...
...

I need the links generated by the script to open in a new window (target=_blank), while all other links in the document needs to behave normally (target=_self)

TIA,
ew

kaled

9:33 am on Jul 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't achieve this with html.

You can add a further script to enumerate the links and change the target attribute of each in turn.

Kaled.