homepage Welcome to WebmasterWorld Guest from 54.145.183.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
specifying the URL of a frame
MusicClub

10+ Year Member



 
Msg#: 7561 posted 9:25 pm on Mar 25, 2004 (gmt 0)

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

 

tedster

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



 
Msg#: 7561 posted 9:59 pm on Mar 25, 2004 (gmt 0)

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.

grahamstewart

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 7561 posted 10:07 pm on Mar 25, 2004 (gmt 0)

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?

tedster

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



 
Msg#: 7561 posted 3:25 am on Mar 26, 2004 (gmt 0)

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.

grahamstewart

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 7561 posted 8:55 am on Mar 26, 2004 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved