Autoload Page outside of Frameset

Discussion in 'HTML' started by Thomas Schneider, Jun 2, 2005.

  1. Hello NG.

    I have to load a website in a Frameset with 2
    Frames: A top, B bottom.

    Now I want to load a page in Frame B, which
    automatically (with HTML or JavaScript) loads
    another Page outside of the Frameset but in the
    same Window.

    It should have the same function like a hyperlink
    with target="_parent", but I don't want to klick
    on a link for this, it should happen automatically.

    Does anybody know how to do this?


    Thomas Schneider, Jun 2, 2005
    1. Advertisements

  2. Also sprach Thomas Schneider:
    Meaning that the whole frameset will be gone - so why have it in the first
    If you want something like "click here to remove frameset", a normal link
    with target="_top" will do.
    You mean like this?
    top.location.href = 'another_page_outside_of_the_frameset.html';
    Thomas Mlynarczyk, Jun 2, 2005
    1. Advertisements

  3. Ist Englisch in dieser Newsgroup Pflicht?
    Sonst könnten wir das auch auf deutsch machen.

    I have a web address at 1&1. It is only a kind of forwarding. But they
    do this forwarding by generating a frameset with one frame not visible
    an in die other frame my website. It is because they offer the same
    web address forwarding with ads, which they show then in the upper frame.
    I have the package without ads, but the problem is, if I press refresh
    in my browser when I am on my page, the whole frameset is reloaded and
    die start page of my site appear not the page I was actually at. Also
    problems with bookmarking etc. So I want to generate a page to which
    the 1&1 address is forwarded to, and which then loads my site outside
    the frameset. But this shall happen automatically, not by klicking a

    I tried to use something like this with onload="" in the body, but
    I must have done sth. wrong, because it didn't work. Can you help
    me with more details!


    Thomas Schneider, Jun 2, 2005
  4. Thomas Schneider

    kchayka Guest

    Hmmm... If you're paying to remove ads, why don't you spend that money
    on real hosting instead? There are hosting packages for as little as $1
    per month out there, as well as domain name registration for less than
    $10 a year. With those kinds of prices, there's no good reason *not* to
    do it, is there?
    kchayka, Jun 2, 2005
  5. Also sprach Thomas Schneider:
    Dafür gibt's z.B. de.comm.infosystems.www.authoring.misc oder andere.
    Ok, now I understand the problem.

    I forgot: You must check if the page is not already in the "top", otherwise
    you create an infinite loop. See below.
    You can put it directly in the head. No need to let the user wait until the
    page is loaded.
    Put this in the head of the page which is loaded into the frameset and
    supposed to be outside of it:

    <script type="text/javascript">
    if (top != self) top.location.replace(self.location);

    Of course, this will not work if the user has JavaScript disabled. The best
    solution for you would be indeed what kchayka suggests.
    Thomas Mlynarczyk, Jun 3, 2005
  6. Done. :)

    Thomas Schneider, Jun 8, 2005
  7. You both are right, I now changed my provider! :)

    Thomas Schneider, Jun 8, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.