Announcement

Collapse
No announcement yet.

How do you get rid of frames when forwarding a browser page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do you get rid of frames when forwarding a browser page

    Hello all,

    My parents have just bought a domain from 1&1 and would like me to set it up so it forwards users to their company website.

    The problem with the way that 1&1 forwards a domain is that it basically runs a webpage with a single frame which takes it's source from your choosen destination. This - as I'm sure you've all already guessed - is going to cause navigational problems because the URL effectively stays static as you change pages . . . which is not what I want (and nor would they if they understood what I was talking about ).

    So, is there a way to setup a link within a framed page which will cause the link to open in the same browser window but *not* in the frame?

    If this is possible, my plan is to set up an HTML file on my personal webspace to point their domain at which will do the above (hopefully) and delivery the user to their company domain, un-masked.

    Thanks in advance,
    David
    Mandrake Press Ltd

    <a href="http://www.mandrake-press.co.uk" target="_blank">www.mandrake-press.co.uk</a>

    #2
    Why don't you move the domain name across to the host of the company website, then it can be mapped without any forwarding issues

    Comment


      #3
      Errr, pass.

      Basically, here's the situation. They work for a company on a commission basis . . . the page where they want their potential customers to end up is a generic webpage with referrer scripts, etc. embedded in it so when a customer places an order, they receive their commission . . . so I need for their customers to definitely be passed to a specific URL so the browser can pick up some cookies, or something.

      All I know is that when I went to the URL they've asked for their domain to forward to, it then referred me instantly to another site where you can start ordering things.

      Did that make sense?

      I'm thinking it might be easier to park their domain on my webspace (in the same way was you suggested) and then use a redirect to send their visitors to the compay website.
      David
      Mandrake Press Ltd

      <a href="http://www.mandrake-press.co.uk" target="_blank">www.mandrake-press.co.uk</a>

      Comment


        #4
        Yay, I've found a solution!

        All I had to do was get 1&1 to forward my parent's domain to an html page on my site which has this code in it
        Code:
        <body onLoad="if(top.location!=self.location) top.location=self.location">
        And va-la! The frames are gone.
        David
        Mandrake Press Ltd

        <a href="http://www.mandrake-press.co.uk" target="_blank">www.mandrake-press.co.uk</a>

        Comment

        Working...
        X