Open website in new window

K

Kat

I am using Microsoft Publisher 2007 to construct my website. I am trying to
link to another website and would like it to open in a new window. I have
followed the directions at
http://office.microsoft.com/en-us/publisher/HA011587451033.aspx for
ECMAScript for version 2003. I have also followed several directions per
posts on this forum which have said that the code was incorrect. For code I
have pasted:

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

For my link I have pasted:
javascript:Show('http://www.otherwebpage.com/
', 'newwindow',
'toolbar=no,scrollbars=yes,resizable=yes,height=250,width=250')

I have checked the code vs. what the instructions say (I am not familiar
with code) and it does not look like I am missing anything. The code is not
overlapping any graphics on my page (It is in the grey area off of my page.
I am nut using a master page (I don't know much about master page, but did
not set up the site using it and under the View tab it is not checked).

Is there something else in 2007 that would conflict with the code working
correctly? The page does not open up in a new window and I receive a message
in the lower left that says 'error on page'

Any help is much appreciated!
Kat
 
M

MAURH

Kat,

The code box should not be in the grey area, try putting it back somewhere
on the page (white area), you can make it as small as you like. Then do a
page preview. The website should then open in a new window.

Maureen
 
M

MAURH

Ah! sometimes it's the simple things that frustrate us the most :) Glad it
worked for you Kat and thanks for posting back, it is appreciated.

Maureen
 
K

Ken neill

This code only works for ms ie and not mozilla.
I am using MS publisher 2007. I copied the following into html code fragment:

<script language="JavaScript" type="text/javascript">

function Show(Url, Name, Features)
{window.open(Url, Name, Features);}
</script>

And the following into hyperlink:

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

It works great in ie but not in mozilla, what do I have to do to get it to work in other browsers?

Ken



MAURH wrote:

Ah!
15-Oct-09

Ah! sometimes it is the simple things that frustrate us the most :) Glad it
worked for you Kat and thanks for posting back, it is appreciated.

Maureen

Previous Posts In This Thread:

Open website in new window
I am using Microsoft Publisher 2007 to construct my website. I am trying to
link to another website and would like it to open in a new window. I have
followed the directions at
http://office.microsoft.com/en-us/publisher/HA011587451033.aspx for
ECMAScript for version 2003. I have also followed several directions per
posts on this forum which have said that the code was incorrect. For code I
have pasted:

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

For my link I have pasted:
javascript:Show('http://www.otherwebpage.com/
', 'newwindow',
'toolbar=no,scrollbars=yes,resizable=yes,height=250,width=250')

I have checked the code vs. what the instructions say (I am not familiar
with code) and it does not look like I am missing anything. The code is not
overlapping any graphics on my page (It is in the grey area off of my page.
I am nut using a master page (I do not know much about master page, but did
not set up the site using it and under the View tab it is not checked).

Is there isomething else in 2007 that would conflict with the code working
correctly? The page does not open up in a new window and I receive a message
in the lower left that says 'error on page'

Any help is much appreciated!
Kat

Kat,The code box should not be in the grey area, try putting it back
Kat,

The code box should not be in the grey area, try putting it back somewhere
on the page (white area), you can make it as small as you like. Then do a
page preview. The website should then open in a new window.

Maureen

Thanks Maureen!
Thanks Maureen! I cannot believe it was so simple - It works perfect now.
Kat

:

Ah!
Ah! sometimes it is the simple things that frustrate us the most :) Glad it
worked for you Kat and thanks for posting back, it is appreciated.

Maureen

EggHeadCafe - Software Developer Portal of Choice
A Dynamic Progress Bar for Your ASP Page
http://www.eggheadcafe.com/tutorial...d-e93432fd7e84/a-dynamic-progress-bar-fo.aspx
 
K

Ken

It should be:

<script language="JavaScript" type="text/javascript">

function Show(Url, Name, Features)

{window.open(Url, Name, Features);}
</script>

Ken



Ken neill wrote:

This code only works for ms explorer and not mozilla firefox.
06-Nov-09

This code only works for ms ie and not mozilla.
I am using MS publisher 2007. I copied the following into html code fragment:

<script language="JavaScript" type="text/javascript">

function Show(Url, Name, Features)
{window.open(Url, Name, Features);}
</script>

And the following into hyperlink:

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

It works great in ie but not in mozilla, what do I have to do to get it to work in other browsers?

Ken

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
Professional ADO.NET 2.0 Programming [Wrox]
http://www.eggheadcafe.com/tutorial...88c4-7949157d13db/professional-adonet-20.aspx
 
D

DavidF

So are you saying that you got it to work ok? I tried your code and it
worked ok for me with IE and FireFox. Post back if you are still having
problems. Tell us specifically what you mean it doesn't work...dead link,
what?

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