Links opening in new window using publisher 2007

M

Mr C

Hi, I found the code for openning a link in a new window on this group
and it looked like it worked fine. However I have since tried to
create link by clicking on a picture on my website but this does not
work. All the links using text are fine, they all open in new windows
but not the graphics. This is my first go at web design so I am not
very knowledgeable. I am not using a master page and the java script
is on the page not in the grey matter. Can anyone help?
 
D

DavidF

Reference: http://office.microsoft.com/en-us/publisher/HA011587451033.aspx

I found that to use the ECMAScript code approach that the first javascript
code snippet was incorrect on the website (others have not). I use this
instead:

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

I found that it was very easy to make mistakes when writing the code snippet
for the hyperlink, and suspect that is what has happened to you. So I
created a separate text box that I drag off into the scratch area where I
can construct the hyperlink code snippet. I pasted the link code snippet
from the article:

javascript:Show('http://www.fourthcoffee.com/
', 'newwindow', 'toolbar=no,scrollbars=yes,resizable=yes,height=

into that text box, and made the box wide enough so that the code snippet
did not wrap to two lines. Then I tested it by copying it and followed my
normal process of inserting a hyperlink and pasted the string into the
address field by using CTRL + V. I did a web page preview and tested it and
then I had a "template" of the code snippet that I knew would work. I could
from that point on just copy and paste different URLs into my "template",
and I was less apt to make mistakes when I built other hyperlink code
snippets.

If your problem is not one of simply writing the code snippet incorrectly,
then please post a link to a page where you are having the problem and give
us the specific steps you are taking.

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