and view the source code, notice I have not used 100% framsets. Click around the website only using the white on grey links at the top of the site (i have made these links point to ntlworld webspace to show whats happening). The address bar in browser updates fine.
But I have a domain name (listed below) and it is pointing to this webspace, but when I link to this name it does not update address in browser, it just stays the same. Click images links in the left margin to see for yourself. Tellingly, if you now look at the source code, a 100% framset has been created and and all of the code has gone.
Your site is in a frameset. That's why it's not displaying the pages in the address bar. The address bar will only display the URL of the topmost frameset.
Yes. It's because instead of simply redirecting the visitor to the other page, your site is being thrown into a frameset (this is usually done to keep the URL of your domain name in the browser).
Often, hosts will give the option of using Frame-Forwarding or regular forwarding. A lot of people like frame-forwarding because it masks the URL of the actual site in the address bar.
You could just break out of the frames after the redirection if you wanted to.
__________________ Please login or register to view this content. Registration is FREE - Latest Articles: Please login or register to view this content. Registration is FREE , Please login or register to view this content. Registration is FREE
Originally posted by moonhaan I searched google for break out of frames and it turns out all I need to do was add: target="_top" to all of my links
Better to add this javascript to the head:
Code:
<script language="javascript" type="text/javascript">
if (window.location != top.location) {top.location.href=window.location}
</script>
__________________
humour: Please login or register to view this content. Registration is FREE / Please login or register to view this content. Registration is FREE
It's better for two reasons: it automatically breaks frames when your site is loaded rather than waiting for someone to click a link, and to insert this only requires each file to be edited once rather than every single link edited.
__________________
humour: Please login or register to view this content. Registration is FREE / Please login or register to view this content. Registration is FREE
Unfortunately not. Because the page is actually on the NTL server, unless it is 'cloaked' by frames it will always have to appear in the address bar. I think there might be one of the domain name redirection services (it could be MyDomain.com) who have their servers set up to automatically generate frames pages for any page requested on your site, so you would just link with _top to www.huxley-scientific.com/page.html and it would create a new frames page which points to htt://long ntl address/page.html
__________________
Please login or register to view this content. Registration is FREE - Everything a webmaster needs - for free
Please login or register to view this content. Registration is FREE - Free web hosts reviewed and rated
Please login or register to view this content. Registration is FREE - Impartial hosting directory - Add your host today for FREE
« Reply to full path is not displayed in the address bar in browser!?!?