![]() |
Here I show alternative of Iframe |
<!DOCTYPE html>
<html>
<body>
<object width="100%" height="500px" data="https://horje.com/learn/565/how-to-set-html-object-element"></object>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<embed width="100%" height="500px" src="https://horje.com/learn/565/how-to-set-html-object-element" width="300" height="200">
</body>
</html>
Use PHP File Get Contents
<!DOCTYPE html>
<body>
<?php
$homepage = file_get_contents("https://horje.com/learn/565/how-to-set-html-object-element");
echo $homepage;
?>
</body>
</html>
Follow the Example of PHP File Contents
<?php
// From URL to get webpage contents.
$url = "https://horje.com/learn/565/how-to-set-html-object-element";
// Initialize a CURL session.
$ch = curl_init();
// Return Page contents.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//grab URL and pass it to the variable.
curl_setopt($ch, CURLOPT_URL, $url);
$result = curl_exec($ch);
echo $result;
?>
<!DOCTYPE html>
<html>
<body>
<h2>HTML Iframes</h2>
<p>You can use the height and width attributes to specify the size of the iframe:</p>
<iframe src="https://horje.com/learn/565/how-to-set-html-object-element" height="200" width="300" title="Iframe Example"></iframe>
</body>
</html>
Category
: |
Web Tutorial |
Sub Category
: |
HTML Link Tutorial |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference