Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
specifying the URL of a frame MusicClub
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
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
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?
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.
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
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.