how can i iframe a page without frame code?

Status
Not open for further replies.

wman5

Active Member
125
2014
11
0
hello, i have a page2.html, i have 1 button of 300x250 in this html page

now i want to show this page in a iframe into my other sites, therefore i can use the next code:

<iframe src="http://mywebsite.com/page2.html" name="iframe985426" width="300px" height="250px" scrolling="auto" frameborder="1" align="center"></iframe>

but is it possible to show this page2.html without a iframe code into my other sites?

a code where i dont need to put width and height. the code must only show the content of page2.html?


so: how can i embed an external page without an iframe?
 
Last edited:
6 comments
Hi,

There are Few ways.
1. Use iframe with some tricks which will eliminate the iframe look.
2. By using Javascript.
3. Using Php tag.

Now which type you want to use. So a further info can be provided.
 
You can disable the iframe border via CSS very easily:

Code:
iframe{
border: 0;}

Otherwise there's no way to request an external URL without an iframe.

If your website is running PHP and you want to call a PHP file, you can use a include, or require_once. Search on Google, it's very easy.
 
You can disable the iframe border via CSS very easily:

Code:
iframe{
border: 0;}

Otherwise there's no way to request an external URL without an iframe.

If your website is running PHP and you want to call a PHP file, you can use a include, or require_once. Search on Google, it's very easy.

its php yes

to what shall i search in google?
 
php include

go to the code, where your iframe was loaded.
comment out this.
open php-tag and include the page like
<?php
include "/page2.html" ;
?>
just make sure, your page2 don't have another html-tag - you don't need this.
just some divs etc. pp
 
Status
Not open for further replies.
Back
Top