Getting the ECMAScript code to work correctly can be a bit tricky, but once
you get it working it is probably a better way. Perhaps part of the problem
is that English is not your first language, so let me explain in more
detail.
Reference:
http://office.microsoft.com/en-us/publisher/HA011587451033.aspx
Under the ECMAScript code approach, look at item 2. This first
javascript code snippet is incorrect on the website. Instead of:
<script language="JavaScript" type="text/javascript"> <!-- function
Show(Url, Name, Features) { window.open(Url, Name, Features); } // -->
</script>
Copy and paste the following into a code fragment box instead:
<script language="JavaScript" type="text/javascript">function Show(Url,
Name, Features) { window.open(Url, Name, Features); }</script>
Move that code fragment box into an area on your page where it won't get in
the way.
Now then I would suggest that you create a text box and drag it off into
your scratch area (the gray area around your working page), and use this
text box to create and write your link codes. Set the font to Courier. It is
really easy to miss a space, a " or something else in the code snippet, so
having one code snippet that does work to use as a "template" for other
links helped me make less errors. Once you build your link in the text box,
then you can just copy and paste it into the hyperlink dialog. Also start
off with a simple "open in a new window" link. Here is one that will work:
javascript:Show('
http://www.google.com/','newwindow','')
Just change out "google.com" with the URL of the site that you want to open
in a new window. Then copy that line of script, select the text that you
want to hyperlink, right click, hyperlink, and just hit Ctrl + V to paste
the line of script into the address field. Then do a web page preview and
and test the link. Now once you have one working, you can just go back to
that "template" script and paste in other URLs and easily copy and paste
into the hyperlink dialog.
After you get just the open new window functioning, then you can go back and
start adding and changing the features or attributes of the new browser
window. Just add one feature/attribute at a time, and test as you go. Like I
said, it is really easy to make a mistake.
Hope these added instructions will help.
DavidF