How can I show HTML from another page in my page?

Posted on 2009-04-20
Medium Priority
Last Modified: 2012-05-06

I have a homepage with simple information that is constantly updated. What I want to do is that rather than having me update my html in my homepage every time, I just want to place a link in that location where the link will really be the information that will be displayed.

For example, lets that my website is: http://www.testing12345.com/testworld.html

In testworld.html I don't want any <body> information but all I want is a link to lets say, http://www.google.com . If I place the link in there, I want to show everything on google.com's page to include images, text, etc... rather than me copy/pasting all the information directly into testworld.html.

I am trying to accomplish this so that people don't modify the contents of my homepage but instead, modify contents to another page that I can point to in my homepage. This will also give me the flexibility of changing where the homepage points to.

Note: I DON'T want to simply redirect the page to that new place. I just want to show contents of 1 page in my homepage.

Is this feasible? If so, let me know.
Question by:piyushdabomb

Accepted Solution

JoachimMartinsen earned 1000 total points
ID: 24186700
With plain HTML, this can be done with IFRAME.
<iframe src="http://www.google.com/"></iframe>

Open in new window

LVL 19

Expert Comment

ID: 24189611
Does the legality of what you want to do concern you? Not many companies will appreciate having their site displayed by an undesired 3rd party. In fact I'd say that you'll receive a letter/email from Google legals if they come across it. Paragraph 5 of their TOS reads "You agree not to access (or attempt to access) any of the Services by any means other than through the interface that is provided by Google".

Author Comment

ID: 24190546

Can I ask you to upload a sample test page with what I'm trying to do? Note that my page already has frames.



Google was JUST an example. I will never plagiarize but from myself.
LVL 13

Assisted Solution

qwerty021600 earned 1000 total points
ID: 24192676
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      border: 1px solid #993333;
<title>Untitled Document</title>

<frameset rows="100" frameborder="no" class="border">
  <frame src="http://www.google.com/" name="topFrame" scrolling="yes"  id="topFrame" title="topFrame" />

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

864 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