load 2 pages in same window

Posted on 2007-10-03
Last Modified: 2012-06-27
Hi, is there anyway to load  in one window, 2 webpages from different domains but only displaying (render) one of them ? Thank you
Question by:loopax
    LVL 70

    Expert Comment

    by:Jason C. Levine
    Hi loopax,

    I suppose you could do it with iframes.
    LVL 70

    Expert Comment

    by:Jason C. Levine
    or regular frames, or even using curl calls.

    Author Comment

    Hi Jason,
    Can you help me with the code? I dont really know how to to this, or what is best option to do it. Many thanks
    LVL 70

    Accepted Solution

    Well, I did give you several options and if you do a little Googling, you would easily find the syntax for each one.  I also have no clue what you are trying to do, so it gets a little hard to make a good recommendation.

    Here's an iframe sample.  It's the simplest to use, but results can be a little variable:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>

    <iframe src="" height="300" width="400"></iframe>
    <iframe src="" height="300" width="400"></iframe>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now