Welcome to WebmasterWorld Guest from 54.158.143.40

Forum Moderators: incrediBILL

Message Too Old, No Replies

specifying the URL of a frame

   
9:25 pm on Mar 25, 2004 (gmt 0)

10+ Year Member



Hi all,

My site is designed in frames. My frameset consists of a top frame that displays my company logo and phone #, and then I have a main frame that displays all site content.

The URL of the frameset is displayed in a browsers address bar, but I want the URL of the main frame to be (automatically) displayed in the address bar.

Does anyone know how to do this? Thanks in advance for all your help

9:59 pm on Mar 25, 2004 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You can use javascript to change the window title displayed by the browser, but I don't think there's much you can do about the browser's address bar.

It's SUPPOSED to show the address of the document being displayed - which in your case is the frameset. That's one of the big downsides involved with using frames, and one of the reasons Jakob Nielsen says that frames "break the metaphor of the web".

HOPE FOR THE FUTURE:
If all you want is a top frame, you are supposed to be able to create that same effect with a div using position:fixed. IE support is currently lacking, unfortunately.

10:07 pm on Mar 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If all you want is a top frame, you are supposed to be able to create that same effect with a div using position:fixed. IE support is currently lacking, unfortunately.

How about a header div at the top with logo etc.

Then everything else either in an iframe or in a div with the overflow property set to auto?

3:25 am on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Maybe I misunderstand you, Graham, but with either of those solutions, the address bar would still not show the URL of the content itself.

I think that is what MusicClub wants -- an address bar where you can copy/paste and have the URL for whatever section of the content is currently displayed.

8:55 am on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume what he is looking for is a strcuture that will allow people to type in URLs to get to particular pages.

The div solution should allow this without any sneakiness, since its a 'normal' page.

The iframe page needs a little bit more cunning as the links in the iframe must

target
the main page, which in turn loads a new page that contains an iframe (with the new content).

The div solution seems like the best choice.