Need help getting Publisher 2007 website to open links in a new wi

S

Sunflowers

I used Publisher 2007 to design a website for my husband's business. There
are two links to external magazine articles and one to send an email to his
account. We want those to open in a new window. There seems to be no easy way
to do this in Publisher. I found on Microsoft.com instructions on adding an
HTML code fragment to get the website to do this if you used Publisher 2003.
I can find nothing about doing this using the 2007 version. What is the
easiest way for me to do this? (I have never before used HTML code and am a
little nervous about trying this.) Please help!
 
S

Spike

Give this a try

After you publish the site to your computer, edit the pages using notepad
and use the following code

After the <head> and before the </head> insert a line of code
<base target="main">

If you have multiple pages I suggest that you download a free program that
will do it for you.

http://www.emurasoft.com/replall/

Replace </head> with

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

Spike
 
D

DavidF

In addition to the method Spike suggested, the methods discussed in the
following article have been used successfully:

Reference: Create a hyperlink in Publisher that opens in a new window:
http://office.microsoft.com/en-us/publisher/HA011587451033.aspx

Personally I find the ECMAScript approach easiest and most versatile. If you
choose to use the ECMAScript code approach note that in the past some people
have found the first javascript code snippet is incorrect on the website. If
you have problems, then use this instead:

<script language="JavaScript" type="text/javascript">function Show(Url,
Name, Features) { window.open(Url, Name, Features); }</script>

I would suggest that you write you links in a text box in the scratch area,
and then copy and paste them into the address field when you are ready to
insert the hyperlinks. It is easy to make a mistake with an extra space,
missing ' or something else, and thus easier to troubleshoot if you can read
the link in the text box. Also remember that you can paste by Ctrl +
V....can be easier.

In reference to the email link, that will open the default email
client...not a new window.

DavidF
 

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