Click to See Complete Forum and Search --> : "target" attribute in hyperlinks???


stampman
03-18-2003, 11:57 AM
I am running an old 'sour' web site which is built on frames. :o

I have through the time collected a huge pile of links to sites in the same interest area, that I wish to place on the site.

If I don't use the attribute target="xx" in the a href hyperlink, the new page will load up in my own frameset.

So I have to insert the attribute in all the tags (hundreds and hundreds), otherwise it will be confusing.

Now I wonder if there exist any javascript I could use, instead of having to do that huge job - a java script that tell the same thing for all links that I will put on my 'hot links' page.

:confused:

pyro
03-18-2003, 12:02 PM
Anwsered: http://forums.webdeveloper.com/showthread.php?s=&threadid=6151

DoLordBoy
03-19-2003, 12:50 PM
couldn't you use the base target function?

On a page write <base target=xx>

That should make all the links on the page have a target of xx