www.webdeveloper.com
Results 1 to 2 of 2

Thread: frames and javascript

  1. #1
    Join Date
    Nov 2002
    Posts
    1

    Question frames and javascript

    Am sorry, am braindead newbie! And I need help!

    My site does not currently have frames, though I want to use frames. OK, no problem there, I can create framesets, thats easy.

    The problem is this.

    I give out a url to a specific page, say;

    www.mywebsite.com/pages/cars/mycar.html

    This will not load into a frame, which is not what I want.

    What I want is, via JS, to be able to detect that the window is not currently framed, then create the frames (v simpy, 2 col frame setup, left one with links in it, main one with the page in it) then load the links (my navigation) into the left frame and then load the page the user actaully entered the url for, in the main frame.

    I know it's very easy to just do something like:

    if (top == self) self.location.href = "INSERT HOMEPAGE HERE";

    and get it to go to my main index.html page where the frameset would be defined, but I really want the actual page they requested in the main frame.

    Am I asking too much here?

  2. #2
    Join Date
    Nov 2002
    Posts
    11

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles