window.opener question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christopher Benson-Manica

    window.opener question

    Let's say that some script on a page opens a new window with a certain
    URL. The page at that URL immediately forwards the popped up browser
    window to a different URL. Can the popped up window still refer to
    the original window using window.opener?

    --
    Christopher Benson-Manica | I *should* know what I'm talking about - if I
    ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
  • Richard Cornford

    #2
    Re: window.opener question

    Christopher Benson-Manica wrote:[color=blue]
    > Let's say that some script on a page opens a new window[/color]

    With a reported 1400% increase in the use of pop-up blockers over the
    last year:-

    <URL: http://www.silicon.com/hardware/stor...9118629,00.htm[color=blue]
    >[/color]
    (and they don't cite the source so a large pinch of salt is called for)

    - that would be an optimistic proposition, but OK, lets say it does.
    [color=blue]
    > with a certain URL. The page at that URL immediately forwards the
    > popped up browser window to a different URL.[/color]

    Better if the server redirects/forwards when it receives the request for
    the first URL.
    [color=blue]
    > Can the popped up window still refer to
    > the original window using window.opener?[/color]

    Cross-domain security restrictions may apply, but otherwise that should
    be OK.

    Richard.


    Comment

    • Christopher Benson-Manica

      #3
      Re: window.opener question

      Richard Cornford <Richard@litote s.demon.co.uk> spoke thus:
      [color=blue]
      > With a reported 1400% increase in the use of pop-up blockers over the
      > last year:-[/color]

      Well, our users can't use our site if they disallow popups - their
      choice :)
      [color=blue]
      > Better if the server redirects/forwards when it receives the request for
      > the first URL.[/color]

      Probably, but I want to use an existing CGI, and the name of the cgi
      that's originally being popped up is fixed.
      [color=blue]
      > Cross-domain security restrictions may apply, but otherwise that should
      > be OK.[/color]

      Great - thanks.

      --
      Christopher Benson-Manica | I *should* know what I'm talking about - if I
      ataru(at)cybers pace.org | don't, I need to know. Flames welcome.

      Comment

      • Lasse Reichstein Nielsen

        #4
        Re: window.opener question

        Christopher Benson-Manica <ataru@nospam.c yberspace.org> writes:
        [color=blue]
        > Well, our users can't use our site if they disallow popups - their
        > choice :)[/color]

        Just to make a point: No, it's your choice to use popups and to make
        a site that requires it. It can be avoided if you so desired.

        Users really don't need a reason not to use a site :)

        /L
        --
        Lasse Reichstein Nielsen - lrn@hotpop.com
        DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
        'Faith without judgement merely degrades the spirit divine.'

        Comment

        • Christopher Benson-Manica

          #5
          Re: window.opener question

          Lasse Reichstein Nielsen <lrn@hotpop.com > spoke thus:
          [color=blue]
          > Just to make a point: No, it's your choice to use popups and to make
          > a site that requires it. It can be avoided if you so desired.[/color]

          It could - but I don't design the site, I just help maintain it :)

          --
          Christopher Benson-Manica | I *should* know what I'm talking about - if I
          ataru(at)cybers pace.org | don't, I need to know. Flames welcome.

          Comment

          Working...