Most voted "iframe" questions
A `element element` <iframe> </iframe> allows the placement of an embedded "frame" within an HTML document, which allows the display of another separate document. Any content between the beginning and near the `element tag` <iframe> is ignored</iframe>
Learn more…209 questions
Sort by count of
-
49
votes7
answers21565
viewsWhy is the use of frames and iframes considered bad practice?
Well, I started developing WEB a short time ago, say 1 year. and here in the company we use a lot frames and iframes... I know that in the HTML5 view frames are obsolete, but I still see a lot of…
-
18
votes3
answers421
viewsTo observe an error in the iframe element with "sandbox" attribute
I have in my document one iframe with the attribute sandbox. With javasript i do reading a file Markdown and parse using the library showdonwjs and add that result to the attribute srcdoc of iframe…
-
13
votes2
answers1498
viewsUsing Object or Iframe to import other sites to my site
I was needing to import several random pages from other sites to my site. Wikipedia, for example. I saw that I can use either Iframe (this worked) or Object (does not show content). Then, I would…
-
8
votes2
answers10853
viewsCalling the Javascript function of the parent file from within an iframe
I have 2 files: index.html iframe.html The archive index.html has an iframe(iframe.html). There is a javascript function in the file index.html function testePai(){ console.log("teste da função"); }…
-
7
votes1
answer353
viewsWhy am I losing the values of <input> when opening and closing a <iframe> using Javascript?
Context: I have an application, which uses php+html+css+javascript(with jquery). On it I have a page called principal.php containing an iframe: <iframe src=pedido.php/> inside calling the…
-
7
votes1
answer675
viewsHow to change the volume of an <iframe> video by javascript?
I have tried the code below to solve. var volumeIcon = 1; $(".ico-volume").on('click', function(event) { if (volumeIcon == 1) { $(this).find("img").removeAttr('src'); $(this).find("img").attr('src',…
-
6
votes1
answer517
viewsIs there a safe way to check the loading of frames in an HTML page?
Some time ago I built a tool with HTML and Javascript to help debug a family of web applications. Basically, the tool consists of a static HTML page and a collection of scripts that load a given…
-
6
votes7
answers19609
viewsHow to catch an element inside an iframe?
Why doesn’t it work .contents()? How to catch an element inside an iframe as in the jQuery API example <!doctype html> <html lang="en"> <head> <meta charset="utf-8">…
-
6
votes1
answer188
viewsHow to get links to open in an iframe?
How do I make the page menu index.html open the pages inside the iframe contained in the same document (index.html). For example, by clicking on link down the page contato.html is carried inside the…
-
6
votes1
answer395
viewsHow to view all JS code requested by an iframe?
I want to exhibit a iframe with an external page and then show in a textarea all JS code requested by iframe in question. I have two problems: the first is how to know all the requisitions that the…
-
5
votes1
answer775
viewsCatch event click inside iframe with jQuery
I’m using the Google Forms to do a satisfaction survey on a site. On this site I show a bar at the top, asking the user to participate. If he closes the message, a cookie is saved that expires in 24…
-
5
votes3
answers2757
viewsDetect if a particular page opens within an IFRAME
I would like to know whether it is possible to detect the following situation: We have an intranet (from a board) that is loaded through a given address: http:Intr.abcdabcd.abc.br We have a global…
-
4
votes1
answer1070
viewsFirefox and Internet Explorer iframe problems
I have a problem with Firefox and Internet Explorer when using a iframe to upload files to the same page. Chrome works perfectly, but in Firefox and Internet Explorer, when I click link the iframe…
-
4
votes3
answers3683
viewsUpload thumbnail only of Youtube videos
I have a page that in its layout there are 20 videos from Youtube, is a listing. As I do not want to make this page really load all these videos to not understand the performance of the site,…
-
4
votes2
answers2528
viewsTo undo the mouse scroll (zoom) action on a google map Iframe
How to undo the mouse scroll (zoom) action on google map in this Iframe? Is it possible to do this directly in this code or do I have to use Java Script? If you have to use js, how do I get this…
-
4
votes1
answer1358
viewsAllow to display my wordpress site in an iframe on another site
Hello, I have a wordpress site that would like to show one of the pages in an iframe on another site, is it possible to do this? At the moment doing the iframe on another page seems to me the…
-
4
votes1
answer1732
viewsHow to put an iframe on fullscreen (full screen)?
I made this little player to be used inside a iframe. But I need to give you the option to put it in full screen (as most video players I know do), but I have no idea how to do that. I’ll leave the…
-
3
votes1
answer760
viewsHow to apply css to body inside an iframe?
I want to apply background: Transparent on the body that is created within an iframe. For example: <iframe src="http://www.meusiteteste.com.br" id="frame_result_show"…
-
3
votes2
answers1138
views -
3
votes2
answers691
viewsHow to index an iframe in Google?
This site uses a <iframe/> to display your Views. Views are inserted and displayed through of this platform. But even though it’s an iframe, Google indexes. How is that possible?…
-
3
votes1
answer130
viewsCheck running of execCommand in firefox ('Copy' command)
I’m having trouble checking if firefox ran the.execCommand element command ('Copy', false, null). This check is being done correctly in Chrome (which does not allow) and IE (which allows). Could you…
-
3
votes1
answer345
viewsTag Catch Size Other TAG
I wonder if there is in CSS, or JS something that makes a TAG that takes up space, make the TAG 'father' adapt to the size of the TAG 'daughter'. Ex: <iframe> <body>o Body possuí um…
-
3
votes1
answer5847
viewsHow to play a youtube video in an iframe? Refused to display '' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
I’m trying to play a youtube video on my website using iframe and is generating me the error that is in the title of the question. HTML: <div class="video-container"> <iframe…
-
3
votes1
answer345
viewsHow do I make a Content Script communicate with iframe element extension for Chrome?
I developed a Toolbar for Google Chrome, adding it to the pages via an iframe: var iframe = document.createElement('iframe'); iframe.id="iframeId"; iframe.src =…
-
3
votes1
answer2313
viewsHow to change the "src" of an iframe without changing the user URL?
How to exchange the contents of an iframe internally without changing the site URL? Example: User entered my site: http://example.com and it contains an iframe: <iframe…
-
3
votes2
answers263
viewsHow to prevent my site from being rendered in an iframe
The idea is simple, I have a website, as I prevent another site from calling mine through a iframe?
iframeasked 8 years, 11 months ago Guilherme Lautert 15,097 -
3
votes1
answer1245
viewsHow do I check if an iframe has fully loaded
So I’m producing a site where I’m using iframes with other sites within it, see the image below: Code: <iframe width="100%" height="747px" src="www.site.com" id="iPrincipal" scrolling='no'…
-
3
votes2
answers11060
viewsHow to center an iframe?
Have on my page an animated banner that I made in Google Web Designer that I incremented in my site to appear before loading the index page. So far so good, the codes are working but I would like to…
-
3
votes3
answers1100
viewsChange the iframe (embed bootstrap) according to the navigation bar button
Example: Navigating: <ul > <li><a href="#"><span>INICIO</span></a></li> <li><a href="#"><span>FACEBOOK</span></a></li>…
-
3
votes1
answer81
viewsHow to perform a function optionally if the page is loaded within an iframe?
You can tell if a particular page is being opened inside a iframe? I want that page to run a function when it is loaded through a iframe. Otherwise, I don’t want you to. Is there any way to do that?…
-
3
votes1
answer18816
viewsWays to put one site inside another?
I’m studying the tag iframe HTML5, I saw that with it we can place websites and videos within a page. However, I did some testing, with PHP and HTML files. The only way that it worked out that the…
-
3
votes1
answer229
viewsBlack screen in youtube EMBED loop
I put a background video on the login screen of my page but when the video comes to an end it stays with the black screen for 3 seconds until restarting the video as I do for it to do it instantly ?…
-
3
votes1
answer302
viewsTaking out an element that is inside an iframe
I needed to take a title that is inside an iframe, I did it with jquery but it takes too long to disappear or even not disappear. I did so with jquery: $(document).ready(function () {…
-
3
votes1
answer549
viewsMake iframe content responsive (Google DFP)
So I’m having a rather complex problem. Knowing that it is not possible to style with CSS the content of a <iframe>, I know no other way to achieve the desired goal. I even tried with…
-
2
votes2
answers452
viewsHow to display a upload image while the iframe content is loaded?
How to display a loading image while the contents of iframe is loaded?
-
2
votes1
answer233
viewsFancybox with dynamic size
Hello. I’ve searched several examples of how to call a Fancybox Pop-up by passing the window size by parameters in my Function. Ex. AbrirPopUp(url,w, h) { chamar #Fancybox(url,w,h) } <a…
-
2
votes2
answers5335
viewsIframe does not really fit with 100% height
According to the following code, <iframe> does not fit vertically even when setting the attribute height like 100%. <div class="container"> <div class="panel panel-default">…
-
2
votes1
answer1346
viewsError while using iframe
I have an application developed in Asp.NET MVC-5 and published on IIS normally. When accessing the application by the link the same works correctly, all links. However, I need to place this page…
-
2
votes1
answer1577
viewsDoubt about X-Frame-Options
Yesterday I had a problem with the X-Frame-Options, as can be seen in this post. However, I added the solution, and it worked perfectly. I’ve added the solution, but I have no idea what it does, and…
-
2
votes1
answer1407
viewsOpen links from iframe
How to prevent Iframe links that have the property target="_blank" and open these links in another iframe only on the same page? Example: Content of Iframe1: <a href="http://t.co/YJdEOEu8Dz"…
-
2
votes1
answer1316
viewsGrab $_GET url parameter from an iframe - WORDPRESS
I’m having a hard time, inside my website I put a iframe that has a button that directs to another page inside my site via GET. only that this button is already gone. ex.: The link inside the iframe…
-
2
votes1
answer452
viewsexchange data-src for src with javascript
On the site I’m doing I have a bunch of thumbnail on which when clicked goes to another page where there are several blocks of code. Each block corresponds to a Thumb. The problem is that I need…
-
2
votes1
answer1503
viewsIframe with my domain as source does not load. How to resolve this?
I put the iframe <iframe src="http://axitech.com.br"></iframe> in an html file within the domain itself and then put inside another domain. The result is that my url does not click on…
-
2
votes1
answer195
viewsCrontab open external page
I set up a cron on my server to run a php script. inside the crontab ran the line : curl http://localhost/atualizacoes/check-atualizacoes.php It ran perfectly, but inside this php I have an if that…
-
2
votes2
answers5810
viewsHow to run Vimeo video automatically (with autoplay)
You can start a video automatically when you open in a lightbox? When clicked, open a lightbox with the VIMEO video, only I want it started when opening the link and not when you click on play. I…
-
2
votes1
answer434
viewsCan I save and upload text file to an iframe or openWYSIWYG?
I really liked the code to save and load text on textarea of a post here. But I wonder if you have any similar code to do the same function with a iframe instead of textarea or that works properly…
-
2
votes0
answers187
viewsScrollless Iframe in Safari Mobile
I need this to: http://jsfiddle.net/R3PKB/2/embedded/result/, scroll in the existing body inside iframe, but in Safari Mobile it forces iframe to have the maximum height of my content and with that…
-
2
votes4
answers2449
viewsHTML 5 Bootstrap google maps
I am with a problem that the map does not load certainly, but it is only the second map, the others load normally. <!--Joinville --> <div class="row"> <div class="col-lg-6">…
-
2
votes1
answer650
viewsIs there any way to submit the form to an Iframe (without Javascript)?
Is there any way to make a form submission where the action, instead of updating the page, be submitted to a iframe? I’ve seen it somewhere, but I didn’t know how the magic was done. It was done…
-
2
votes1
answer70
viewsManage iframe activity
Good evening guys!!! I came to ask you for a help. I am building a page. php with html structure that contains an Iframe in your body. Just when this page . php is opened iframe loads within itself…