how do i setup hyperlinks in publisher 2003 to open in a new windo

B

babyboos

i tried the one help file i could see in here i copied and pasted exactly as
stated and these did not work never mind trying to tweek it for my particluar
purposes all i get is page cannot be displayed if i right click on the
hyperlink whwn published to the web and if i click on it nothing happens
though it does pick it up as a hyperlink (underlines and cursor changes)
 
D

David Bartosik

If you are going to be doing custom html coding - even if it's just copy and
pasting a code snippet - it is best to have some simple understanding of
basic html. The resource I recommend is http://www.htmlgoodies.com - since
html discussions are OT in this forum.
That said, what code are you copying? and is this for an html created window
or a javascript window? You will likely have to post the URL of the page(s)
in question for a review.
 
B

babyboos

Hi David
thanx for your reply
http://www.babyboos.com is my website
I want to be able to use the java script option i think as i often have more
than one external link in each page - some are internal links which are fine
to move the persons window to but i would like my website to stay open when
they click on one of the external links
i have tried the code shown on the microsoft website on the home page so far
and The Hamster Society link
I do hope you can help in any way
Thanx again


David Bartosik said:
If you are going to be doing custom html coding - even if it's just copy and
pasting a code snippet - it is best to have some simple understanding of
basic html. The resource I recommend is http://www.htmlgoodies.com - since
html discussions are OT in this forum.
That said, what code are you copying? and is this for an html created window
or a javascript window? You will likely have to post the URL of the page(s)
in question for a review.

--
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com



babyboos said:
i tried the one help file i could see in here i copied and pasted exactly as
stated and these did not work never mind trying to tweek it for my particluar
purposes all i get is page cannot be displayed if i right click on the
hyperlink whwn published to the web and if i click on it nothing happens
though it does pick it up as a hyperlink (underlines and cursor changes)
 
D

David Bartosik [MSFT MVP]

No you don't want to use javascript, you need to use a html link with the
target attribute. Publisher doesn't support adding a target so you have to
make the link yourself with a code fragment. This is covered on the FAQ -
http://www.publishermvps.com/WebDesign/FAQ/tabid/30/Default.aspx - about
item 7 on the page.

David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com

babyboos said:
Hi David
thanx for your reply
http://www.babyboos.com is my website
I want to be able to use the java script option i think as i often have
more
than one external link in each page - some are internal links which are
fine
to move the persons window to but i would like my website to stay open
when
they click on one of the external links
i have tried the code shown on the microsoft website on the home page so
far
and The Hamster Society link
I do hope you can help in any way
Thanx again


David Bartosik said:
If you are going to be doing custom html coding - even if it's just copy
and
pasting a code snippet - it is best to have some simple understanding of
basic html. The resource I recommend is http://www.htmlgoodies.com -
since
html discussions are OT in this forum.
That said, what code are you copying? and is this for an html created
window
or a javascript window? You will likely have to post the URL of the
page(s)
in question for a review.

--
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com



babyboos said:
i tried the one help file i could see in here i copied and pasted
exactly as
stated and these did not work never mind trying to tweek it for my
particluar
purposes all i get is page cannot be displayed if i right click on the
hyperlink whwn published to the web and if i click on it nothing
happens
though it does pick it up as a hyperlink (underlines and cursor
changes)
 
B

babyboos

Hi
the reason I was trying to use javascript was this was what it said to use
in the microsoft.com help pages for doing this in publisher 2003 :)
Q. How do I make my hyperlink open the URL in a new browser window?
A. Launching a new window is done by using the target attribute of the
link. Publisher does not have any support for this. Meaning there is no way
to code a target when linking within Publisher. The workaround is to use the
HTML Code Fragment feature and code the link yourself, including the desired
target. As such:
To open a new window per target:

<a target="_blank" href="http://www.domain.com">Link Text</a>

To re-use the window you launched on each target use:

<a target="_display" href="http://www.domain.com">Link Text</a>

Can you explain in more detail what i need to do here as i tried adding this
in and it still doesnt seem to work

http://www.babyboos.com/a target="_blank" href="http:/www.domain.com">Link Text</a

is the message i get when i click on the link now


David Bartosik said:
No you don't want to use javascript, you need to use a html link with the
target attribute. Publisher doesn't support adding a target so you have to
make the link yourself with a code fragment. This is covered on the FAQ -
http://www.publishermvps.com/WebDesign/FAQ/tabid/30/Default.aspx - about
item 7 on the page.

David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com

babyboos said:
Hi David
thanx for your reply
http://www.babyboos.com is my website
I want to be able to use the java script option i think as i often have
more
than one external link in each page - some are internal links which are
fine
to move the persons window to but i would like my website to stay open
when
they click on one of the external links
i have tried the code shown on the microsoft website on the home page so
far
and The Hamster Society link
I do hope you can help in any way
Thanx again


David Bartosik said:
If you are going to be doing custom html coding - even if it's just copy
and
pasting a code snippet - it is best to have some simple understanding of
basic html. The resource I recommend is http://www.htmlgoodies.com -
since
html discussions are OT in this forum.
That said, what code are you copying? and is this for an html created
window
or a javascript window? You will likely have to post the URL of the
page(s)
in question for a review.

--
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com



:

i tried the one help file i could see in here i copied and pasted
exactly as
stated and these did not work never mind trying to tweek it for my
particluar
purposes all i get is page cannot be displayed if i right click on the
hyperlink whwn published to the web and if i click on it nothing
happens
though it does pick it up as a hyperlink (underlines and cursor
changes)
 
D

David Bartosik [MSFT MVP]

I guess you are making this out to be more difficult then it is...

on your page where you want the hyperlink draw a html code fragment box
(Insert menu), and in the fragment dialog paste the following html code

<a target="_blank" href="http://www.domain.com">blah blah blah</a>

then afterwards type in the URL you are linking to in there between the
quotes (" ") after the href=

then replace the blah blah blah with the name of the site you are linking
too, or optionally the winning Pick 3 numbers for this tomorrow.

then close the dialog and BAM! you're done.

pretty simple, no chants or javascript or voodoo about it.


David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com
 

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