Redirecting "main" frame

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

    #1

    Redirecting "main" frame

    Is there some way to redirect the "main" frame to another URL from within the "header" frame?

    Thanks,
    Don

    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  • Randy Webb

    #2
    Re: Redirecting "main&quot ; frame

    Don wrote:[color=blue]
    > Is there some way to redirect the "main" frame to another URL from within the "header" frame?[/color]

    yes.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

    Comment

    • Don

      #3
      Re: Redirecting "main&quot ; frame

      On Sun, 13 Feb 2005 12:32:41 -0500, Randy Webb <HikksNotAtHome @aol.com> wrote:
      [color=blue]
      >Don wrote:[color=green]
      >> Is there some way to redirect the "main" frame to another URL from within the "header" frame?[/color]
      >
      >yes.[/color]
      Care to tell me how it can be done?

      Thanks,
      Don

      ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
      http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
      ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

      Comment

      • Lee

        #4
        Re: Redirecting &quot;main&quot ; frame

        Don said:[color=blue]
        >
        >On Sun, 13 Feb 2005 12:32:41 -0500, Randy Webb <HikksNotAtHome @aol.com> wrote:
        >[color=green]
        >>Don wrote:[color=darkred]
        >>>Is there some way to redirect the "main" frame to another URL from within the
        >>>"header" frame?[/color]
        >>
        >>yes.[/color]
        >Care to tell me how it can be done?[/color]

        parent.frames["main"]

        is a reference to the window object representing the "main" frame
        of the current frame's parent window (assuming such a frame exists).

        You can set its location attribute as you would any other window:

        parent.frames["main"].location="http ://www.allstarpuzz les.com"

        Comment

        • Don

          #5
          Re: Redirecting &quot;main&quot ; frame

          On 13 Feb 2005 12:34:36 -0800, Lee <REM0VElbspamtr ap@cox.net> wrote:
          [color=blue]
          >Don said:[color=green]
          >>
          >>On Sun, 13 Feb 2005 12:32:41 -0500, Randy Webb <HikksNotAtHome @aol.com> wrote:
          >>[color=darkred]
          >>>Don wrote:
          >>>>Is there some way to redirect the "main" frame to another URL from within the
          >>>>"header" frame?
          >>>
          >>>yes.[/color]
          >>Care to tell me how it can be done?[/color]
          >
          > parent.frames["main"]
          >
          >is a reference to the window object representing the "main" frame
          >of the current frame's parent window (assuming such a frame exists).
          >
          >You can set its location attribute as you would any other window:
          >
          > parent.frames["main"].location="http ://www.allstarpuzz les.com"[/color]
          Thank you Lee. That works just great! Appreciate your taking the time to help out. This is a
          great newsgroup, and for the most part has some really great people willing to lend a hand.

          Thanks again,
          Don

          ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
          http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
          ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

          Comment

          Working...