SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Window location with frames?

    Hey, so I've got windows.location='index.html' working great. Now I have that in a top frame, and want index.html to appear in the main frame.

    How can I do this?

    windows.frame='index.html' doesn't work - how am I supposed to use the windows.frame object? Is this what I want?

    Thanks in advanced!

    Regards,
    Someonewhois

  2. #2
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it!

    I was reading another tutorial and stumbled on upon it I'm still new to JS (well, I'm trying to get past the basics)

    parent.framename.location=' '



    Thanks anyway

    Regards,
    Someonewhois

  3. #3
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ya, the important window references to know when working with frames are self, top, and parent.

    self is a reference to the current window

    parent is a reference to the current window's parent frameset.

    top is a reference to the topmost frameset

    So, when there no framesets, top == parent == self

    In a single-frameset environment, top == parent


    In all other scenarios, they are each unique.

    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  4. #4
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I'll remember that


Bookmarks

Posting Permissions

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