Hyperlink - Open In New Page using ECMAScript

A

AaronMor

I am trying to setup some hyperlinks that will open to a new page that I can
control the size of the new window. I have been following the example created
by Connie Miller (
http://office.microsoft.com/en-us/publisher/HA011587451033.aspx). I have
copied the following information into a HTML Code Fragment box:

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

And then have copied the following into the hyperlink address box:

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

However, when I publish the file to the directory within my work server it
will not work. I get a message stating that there is an error on the page.

Can anyone please let me know what the problem is??????
 
J

jammb

I have been having the same problem. I follow the directions exactly as
provided, but get "Error on page" at the bottom.
 
A

AaronMor via OfficeKB.com

The simpliest solution that I found is by simply entering the following into
a hyperlink on any picture/object/text.

javascript:void(window.open('http://www.google.com','','width=150,height=215,
left=450,top=300,resizable=yes,scrollbars=yes'))

All that you have to do is place your website between the first set of ' '


SUCCESS! The solution can be found here:
http://qaix.com/web-design/448-789-...ink-to-open-target-in-a-new-window-read.shtml.
I have been having the same problem. I follow the directions exactly as
provided, but get "Error on page" at the bottom.
[quoted text clipped - 17 lines]
 

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