Forum Moderators: open

Message Too Old, No Replies

Have all links on page open with target="_top"

Without having to specify attribute in every anchor tag

         

Jeremy_H

6:28 am on Apr 10, 2006 (gmt 0)

10+ Year Member



Is there a line of code I can insert into my document head that will force all the links to open with the target="_top"?

I know I can go through all my links and set that attribute for each one, but I was hoping there might be a cleaner method.

If HTML can't do this, can JavaScript?

Thanks

milanmk

7:03 am on Apr 10, 2006 (gmt 0)

10+ Year Member



Add the following code to your HTML header.

<base target="_top">

Jeremy_H

2:36 pm on Apr 10, 2006 (gmt 0)

10+ Year Member



Thanks,

Works great!