Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a html page to show content from another url

Tags:

html

hyperlink

I want to make a html page that act kind like google cache.

Say in my homepage HOME, I have a link A to a website B, and when I click on A, the page that comes out will display the content of another page, with a floating bar on top that has some functions of my own choices.

For example, I want my link to show google.com, but I also want to add a button(floating bar, anything) to that google.com that allows me to return to my own webpage when pressed.

Can someone provide me some useful resources for me too look at, or even better a solution template? :)

Thanks!

like image 501
user1948847 Avatar asked Apr 04 '13 20:04

user1948847


2 Answers

An iframe sounds like it may be what you need, but I'm not 100% sure after reading your description. The iframe will show content from another URL in your page. Once you have that all you need to do is style the page and use CSS/JavaScript to add in your functionality as described.

Check out this: http://www.w3schools.com/tags/tag_iframe.asp

like image 157
Evan Shortiss Avatar answered Sep 28 '22 02:09

Evan Shortiss


You could use an <iframe> in order to display an external webpage within your webpage. Just place the url of the webpage that you want to display inside the quotes of the src attribute.

<iframe src="http://www.webpage.com" width="400" height="400"></iframe>
like image 29
Kevin Gurney Avatar answered Sep 28 '22 02:09

Kevin Gurney