[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

load 2 pages in same window

Hi, is there anyway to load  in one window, 2 webpages from different domains but only displaying (render) one of them ? Thank you
0
loopax
Asked:
loopax
  • 3
1 Solution
 
Jason C. LevineNo oneCommented:
Hi loopax,

I suppose you could do it with iframes.
0
 
Jason C. LevineNo oneCommented:
or regular frames, or even using curl calls.
0
 
loopaxAuthor Commented:
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
0
 
Jason C. LevineNo oneCommented:
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<iframe src="http://www.google.com/" height="300" width="400"></iframe>
<iframe src="http://www.yahoo.com/" height="300" width="400"></iframe>
</body>
</html>
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now