Popup Question: on popup have one button to close and another to close and then redirect to another page

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

    Popup Question: on popup have one button to close and another to close and then redirect to another page

    Hi,

    I'm probably going to get harassed just for mentioning the
    unmentionable, but since I have if anyone could answer this question
    that would be much appreciated.

    As per the rather long subject, I would like to (well, my boss would
    like me to...) on a popup have one button to close and another to
    close but then redirect to another page.

    Heeeeeeeeeeeelp !

    Thanks,

    Dave.
  • Lasse Reichstein Nielsen

    #2
    Re: Popup Question: on popup have one button to close and another to close and then redirect to another page

    -DRB- <bog@bog.com> writes:
    [color=blue]
    > As per the rather long subject, I would like to (well, my boss would
    > like me to...) on a popup have one button to close and another to
    > close but then redirect to another page.[/color]

    <input type="button" value="Close" onclick="window .close()">
    <input type="button" value="Redirect "
    onclick="parent .location.href= 'otherpage.html ';window.close( )">

    /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

    • -DRB-

      #3
      Re: Popup Question: on popup have one button to close and another to close and then redirect to another page

      Hi,

      Many thanks for taking the time to reply. Somehow, I kind of figured
      it might be you!

      Didn't quite work though. The second option closes the page but
      doesn't then go to the other one.

      The page is:



      And the popup is the one on the 6th.

      You've helped me before, if you could do it again I'd be a very happy
      chappy!

      Thanks,

      Dave.




      On 22 Sep 2003 15:26:35 +0200, Lasse Reichstein Nielsen
      <lrn@hotpop.com > wrote:
      [color=blue]
      >-DRB- <bog@bog.com> writes:
      >[color=green]
      >> As per the rather long subject, I would like to (well, my boss would
      >> like me to...) on a popup have one button to close and another to
      >> close but then redirect to another page.[/color]
      >
      ><input type="button" value="Close" onclick="window .close()">
      ><input type="button" value="Redirect "
      > onclick="parent .location.href= 'otherpage.html ';window.close( )">
      >
      >/L[/color]

      Comment

      • Lasse Reichstein Nielsen

        #4
        Re: Popup Question: on popup have one button to close and another to close and then redirect to another page

        -DRB- <bog@bog.com> writes:
        [color=blue]
        > Didn't quite work though. The second option closes the page but
        > doesn't then go to the other one.[/color]

        ....due to a mistake that I make far too often: switching "parent" and
        "opener". The onclick attrbiute should be
        onclick="opener .location.href= 'calendar.htm'; window.close()" >

        Good luck
        /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

        • -DRB-

          #5
          Re: Popup Question: on popup have one button to close and another to close and then redirect to another page

          Legend.... huge thanks!

          On 23 Sep 2003 01:45:28 +0200, Lasse Reichstein Nielsen
          <lrn@hotpop.com > wrote:
          [color=blue]
          >-DRB- <bog@bog.com> writes:
          >[color=green]
          >> Didn't quite work though. The second option closes the page but
          >> doesn't then go to the other one.[/color]
          >
          >...due to a mistake that I make far too often: switching "parent" and
          >"opener". The onclick attrbiute should be
          > onclick="opener .location.href= 'calendar.htm'; window.close()" >
          >
          >Good luck
          >/L[/color]

          Comment

          Working...