Can't put website in iframe - html

I'm trying to put g2a.com website in an iframe, but it doesn't work. When I insert code below to my html file g2a website, it is opening full screen, and I have g2a.com in address bar. It is working with any other website I have tried so it has to be something specific about g2a.com. Anyone have an idea how to make it work with iframe?
<iframe src="https://www.g2a.com/" width="50%" height="50%" frameborder="0" marginheight="0" marginwidth="0">
<p>Click here! (Your browser does not support iframes)</p>
</iframe>

g2a.com uses a framebraker, to avoid using this site in an iframe..
you can still add a
sandbox="allow-scripts"
in your example:
<iframe src="https://www.g2a.com/" sandbox="allow-scripts" width="50%" height="50%" frameborder="0" marginheight="0" marginwidth="0">
<p>Click here! (Your browser does not support iframes)</p>
</iframe>
to your iframe, which works in most newer browsers. This prohibits that the website in the frame can affect the main window.

Related

Using Iframe to embed content from one page to another -- Height Issue

I have an issue with the hight function with an iframe i have it set to 100% on mobile it looks fine and shows the 3 boxers but on my laptop it only shows a small part of the page link attached http://social.itsfewster.co.uk/#services
<iframe src="assets/table/index.html" marginwidth="5"
scrolling="no"
height="100%"
width="100%"
frameborder="0">
</iframe>

Iframe tag not showing content in html

I am attempting to have a website inside my website using the iframe tag like this:
<iframe height="100%" width="100%" src="http://www.example.com/">
<p>Your browser does not support the iframe element</p>
</iframe>
Unfortunately, this just shows a box or border. I would like it to show "example.com" inside my website.
Thanks in advance.
Works for me.
https://jsfiddle.net/1a7y6n37/
Tested with:
<iframe height="100%" width="100%" src="https://www.w3schools.com">
<p>Your browser does not support the iframe element</p>
</iframe>

Iframe full screen not working in Chrome?

I am integrating Slideshare in my website. Slide presentation is coming fine in small window. But the problem is slide presentation in full screen is not coming in Chrome(website slider itself displaying in full screen). In Mozilla its working fine. Only issue with Chrome.
Website link: http://test.kiadb.in/
place used the iframe is next to invest Karnataka image refer image
This code I have used for Iframe <iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen="allowfullscreen"></iframe>
Thanks in Advance.
try this way
<iframe src="http://yourpage.com" frameborder="0" allowFullScreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
Please try this iframe.
<iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen></iframe>
I think it will work for you.
I got a error in console
just try to solve that
Error pic
and try this iframe
<iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen="allowfullscreen" webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
Make sure that your Iframe is not inserted in another iframe embed code. If that is the case, the parent iFrame must have the allowfullscreen="true" parameter as well.
Try this
allow="autoplay; encrypted-media" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen" frameborder="0"

iframe doesn't embed, just pops up with open with/save as box. Tried everything

All I want to do is embed this banner, I have tried every possible combination and googled as much as I can. Here are my current live attempts.
Non wordpress - http://mch.co.uk/centrallondon/iframetest.shtml
With this code:
<iframe
src="http://www.mch.co.uk/centrallondon/immac.html"
width="445"
height="85"
scrolling="no"
frameborder="0" ></iframe>
Wordpress - http://mch.co.uk/centrallondon/iframe-test.shtml
With this code:
[iframe
width="640"
height="480"
src="http://www.mch.co.uk/centrallondon/immac.html"]
<iframe
src="http://www.mch.co.uk/centrallondon/immac.html"
width="445"
height="85"
frameborder="0"
scrolling="no">
</iframe>
The wordpress one includes a shortcode from an iframe embedding plugin.

Embed a Youtube Channel into HTML with iFrame

I'm trying to embed a Youtube channel into a HTML page.
For example I take this channel address: http://www.youtube.com/aaaa
I used this code:
<html>
<head>
</head>
<body>
<iframe src="http://www.youtube.com/aaaa"></iframe>
</body>
</html>
The problem is that it doesn't work. I tried with another site, and it works. What can be the problem?
The problem seems to be induced by this URL:http://www.youtube.com/aaaa.
I tried some other URLs and it works.
You can try some URLs easily here.
Try this:
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=aaaa&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/aaaa" frameborder="0">
</iframe>
This was taken from youtube here
it appears IE (and others) can only use [youtube.com /embed/ videoID] (HTML5 Player) - at least the way I am implementing them.
Try this:
<div name="iframe" style="width:100%; height:635px; border:2px solid grey; overflow:hidden">
<iframe src="http://yourchannel-URL" style="width:100%; height:700px; margin-top: -65px" scrolling="true">
If you can see this, your browser doesn't support iframes. Click here to see my YouTube channel.
</iframe>
</div>
This should embed a complete youtube channel without a youtube search bar.
To display a gallery of thumbnails of your YouTube Channel's most recent videos, you can use an iframe:
<iframe
onload="javascript:this.style.height = this.contentWindow.document.body.scrollHeight + 'px';"
scrolling="no"
height="600"
marginheight="0"
frameborder="0"
width="480"
src="http://youtubechannelembed.com/gallery.php?vids=9&user=doitfordummies&row=3&width=150&margin_right=15&desc=100&title=30&views=1&likes=1&dislikes=1&fav=1">
</iframe>