Welcome to WebmasterWorld Guest from 184.108.40.206 , 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 msg:564987 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 msg:564988 9:59 pm on Mar 25, 2004 (gmt 0)
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 msg:564989 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 msg:564990 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 msg:564991 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
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.