Search Engine Optimization > Web Design > how do i setup hyperlinks in publisher 2003 to open in a new windo
how do i setup hyperlinks in publisher 2003 to open in a new windo
Posted by babyboos on May 30th, 2005

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)

Posted by David Bartosik on May 31st, 2005

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" wrote:

Posted by babyboos on June 1st, 2005

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" wrote:

Posted by David Bartosik [MSFT MVP] on June 2nd, 2005

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/WebDesi...0/Default.aspx - about
item 7 on the page.

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

"babyboos" <babyboos@discussions.microsoft.com> wrote in message
news:3CC66EC3-C44E-46B6-AACD-439C03EF032A@microsoft.com...


Posted by babyboos on June 2nd, 2005

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%20target=%...nk%20Text%3c/a

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


"David Bartosik [MSFT MVP]" wrote:

Posted by David Bartosik [MSFT MVP] on June 3rd, 2005

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


Funbolt.com - Entertainment portal, wallpapers, sexy celebs