closing frameset

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

    #1

    closing frameset

    Hi all

    This is my code to open my frameset:
    Dim myOpenWindowJS = "<script
    language='javas cript'>myWin=op en('Frameset.ht m','mySmallFram eset','width=44 5
    ,height=350');</script>"

    Response.Write( myOpenWindowJS)

    How do I close the frameset from one of the windows within? Or maybe
    response.redire ct to another site.

    Thanks
    Graeme





  • S. Justin Gengo

    #2
    Re: closing frameset

    Graeme,

    You could try either:

    parent.window.c lose();

    or

    top.window.clos e();

    Response.Redire ct won't work for you because that would always occurr within
    a single frame. You could however open a new window with javascript going to
    the redirect page and then close the opener using code similar to that
    above.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche
    "Sabre" <maximNOSPAM@wa ve.co.nz> wrote in message
    news:e$KjvEYVDH A.2288@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Hi all
    >
    > This is my code to open my frameset:
    > Dim myOpenWindowJS = "<script
    >[/color]
    language='javas cript'>myWin=op en('Frameset.ht m','mySmallFram eset','width=44 5[color=blue]
    > ,height=350');</script>"
    >
    > Response.Write( myOpenWindowJS)
    >
    > How do I close the frameset from one of the windows within? Or maybe
    > response.redire ct to another site.
    >
    > Thanks
    > Graeme
    >
    >
    >
    >
    >[/color]


    Comment

    • Sabre

      #3
      Re: closing frameset

      Thanks Justin. parent.window good!
      "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
      news:%238sAM6YV DHA.424@TK2MSFT NGP11.phx.gbl.. .[color=blue]
      > Graeme,
      >
      > You could try either:
      >
      > parent.window.c lose();
      >
      > or
      >
      > top.window.clos e();
      >
      > Response.Redire ct won't work for you because that would always occurr[/color]
      within[color=blue]
      > a single frame. You could however open a new window with javascript going[/color]
      to[color=blue]
      > the redirect page and then close the opener using code similar to that
      > above.
      >
      > Sincerely,
      >
      > --
      > S. Justin Gengo, MCP
      > Web Developer
      >
      > Free code library at:
      > www.aboutfortunate.com
      >
      > "Out of chaos comes order."
      > Nietzche
      > "Sabre" <maximNOSPAM@wa ve.co.nz> wrote in message
      > news:e$KjvEYVDH A.2288@TK2MSFTN GP12.phx.gbl...[color=green]
      > > Hi all
      > >
      > > This is my code to open my frameset:
      > > Dim myOpenWindowJS = "<script
      > >[/color]
      >[/color]
      language='javas cript'>myWin=op en('Frameset.ht m','mySmallFram eset','width=44 5[color=blue][color=green]
      > > ,height=350');</script>"
      > >
      > > Response.Write( myOpenWindowJS)
      > >
      > > How do I close the frameset from one of the windows within? Or maybe
      > > response.redire ct to another site.
      > >
      > > Thanks
      > > Graeme
      > >
      > >
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...