Re: how do i setup hyperlinks in publisher 2003 to open in a new w



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)
>
>
>
.



Relevant Pages

  • Re: HTML4.01 STRICT and hyperlinks with target
    ... such that the page validates, but the target of each link is changed on load ... validation is a means to an end. ... And for many of my sites and applications, I actively want the link to open in a new window. ... Since it isn't up to me as the developer to demand JavaScript of my clients, I don't want a JavaScript solution. ...
    (comp.infosystems.www.authoring.html)
  • Targetted link always opens new window
    ... link which uses the target attribute. ... Or if javascript is being used to open ... a window with a name, ... My browser always opens a new ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: frames [lame]
    ... this case I avoid the use of a 'target' on the link by setting " rel='external' " in the link and using a piece of Javascript to set the 'target' based on 'rel'. ... The 'rel' attribute on the link is valid HTML and is used to specify the relationship between the page containing the link, and its target: in this case, Javascript simply provides the implementation mechanism when that target is a new window.. ... There is, however IMO, one good reason for opening external links in a new window: namely, you have no control over the content of the new page. ...
    (alt.html)
  • Re: How to open a new window in button click event?
    ... href with a target, or client script tied to a onclick event. ... the old trick of spewing inline javascript to open the window. ... | But the Response.Redirectopens a new page in the same ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how do you link to a new window in a publisher webpage?
    ... Q. How do I make my hyperlink open the URL in a new browser window? ... Launching a new window is done by using the target attribute of the ... Publisher does not have any support for this. ... to code a target when linking within Publisher. ...
    (microsoft.public.publisher.webdesign)

Quantcast