Bag of tricks

S

Spike

Every now and then someone on this forum wants to open links to other web
sites using a new window. I found that this code works well. I tagged it
to my center pages code. Two birds with one stone.

That way I can use "Replace In Files" to enter both functions at the same
time.

Replace </head> with

<base target="main"></head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>

Or if you just want new window use

Replace </head> with

<base target="main"></head>


The <base target="main"> needs to reside between <head> and </head>

Spike
 
S

Spike

David

So far as I can tell it only affects the web links. Navbar links, images
etc is not affected.

Spike
 
D

DavidF

Thanks for the tip Spike. Does this result in the internal links also
opening in new windows?

DavidF
 
S

Spike

David

Follow up

Once a new window is open, any calls to that link will go to the open window
and will not open yet another new window. I have two sites that are inked
together. The first one open opens the second in a new window and from then
on it jumps between the open windows if you select the other sites link.

Spike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top