Re: how do i setup hyperlinks in publisher 2003 to open in a new w
- From: "babyboos" <babyboos@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Jun 2005 15:51:02 -0700
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=%22_blank%22%20href=%22http:/www.domain.com%22%3eLink%20Text%3c/a
is the message i get when i click on the link now
"David Bartosik [MSFT MVP]" wrote:
> 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" <babyboos@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:3CC66EC3-C44E-46B6-AACD-439C03EF032A@xxxxxxxxxxxxxxxx
> > 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:
> >
> >> 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:
> >>
> >> > 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)
>
>
>
.
- Follow-Ups:
- Re: how do i setup hyperlinks in publisher 2003 to open in a new w
- From: David Bartosik [MSFT MVP]
- Re: how do i setup hyperlinks in publisher 2003 to open in a new w
- References:
- RE: how do i setup hyperlinks in publisher 2003 to open in a new w
- From: babyboos
- Re: how do i setup hyperlinks in publisher 2003 to open in a new w
- From: David Bartosik [MSFT MVP]
- RE: how do i setup hyperlinks in publisher 2003 to open in a new w
- Prev by Date: RE: Can you create password protected pages in a Publisher web site?
- Next by Date: The website layout changes when previewed in Explorers browser.
- Previous by thread: Re: how do i setup hyperlinks in publisher 2003 to open in a new w
- Next by thread: Re: how do i setup hyperlinks in publisher 2003 to open in a new w
- Index(es):
Relevant Pages
|