Results 1 to 7 of 7

Thread: Navigating with frames.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    Forest
    Posts
    545

    Navigating with frames.

    My left frame has all the urls. When I click on it, I like the right frame to navigate to that site.

    I did this before but forgot how to do it off the top of my head. It is something

    javascript:window

    Anyway, hope someone can help.

    Thanks
    Bird of Prey

    Mr. Bald Eagle.
    [img][/img]

  2. #2
    Quentin
    Guest
    in the frameset, give the right frame a name (name="maincontent")

    in the navigation-file use the following in your HREF tag: target=maincontent (frame names are case sensitive)

    if you want to you can post this in your HEAD area: <base target=maincontent> so you don't have to use target=maincontent in every link

    hope that helps

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    Forest
    Posts
    545
    Thanks for your solution.

    Also, instead of using the anchor tag, how would I do it with a button?

    Thanks
    Last edited by Hawk; May 17th, 2002 at 11:39 AM.
    Bird of Prey

    Mr. Bald Eagle.
    [img][/img]

  4. #4
    Quentin
    Guest
    parent.frames.yourframename.document.location='yourfile'

    should do the job

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    Forest
    Posts
    545
    That goes into the Onclick event of the submit button right?

    Thanks Quentin!
    Bird of Prey

    Mr. Bald Eagle.
    [img][/img]

  6. #6
    Quentin
    Guest
    np

    right, you can also put it in a function so you just have to say onclick="myFunction('file.html')"

    just for code optimizing

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    Forest
    Posts
    545
    I like the method you showed for the anchor tag but I guess that can't be done with a button.

    Quentin, thanks for your dedication to this thread. You enlightend the solution for me. Have a nice day.
    Bird of Prey

    Mr. Bald Eagle.
    [img][/img]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width