Target named anchor when opening window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Target named anchor when opening window

    HI,

    I was wondering if it is possible to target a named anchor in a frame when
    opening a new window with a javascript function? has anyone actualy been
    able to do this?

    Thanks in advance for your answer

    Sean


  • Lasse Reichstein Nielsen

    #2
    Re: Target named anchor when opening window

    "John" <w> writes:
    [color=blue]
    > I was wondering if it is possible to target a named anchor in a frame when
    > opening a new window with a javascript function? has anyone actualy been
    > able to do this?[/color]

    window.open("ht tp://www.foo.bar/dims.html#named AnchorName","ba z");

    I.e., just as if you openend it with a link.

    The global function "open" (a.k.a. "window.ope n") with two arguments
    window.open("UR L","targetName" )
    works just as clicking on the link
    <a href="URL" target="targetN ame">CLICK ME!</a>
    It is only if the target window/frame doesn't exist that the third
    argument to "open" matters.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...