tagged [iframe]

How to switch master page depending on IFrame

How to switch master page depending on IFrame I want to use an IFrame in my ASP.Net MVC application, yet I want to retain the layout when the internal pages are navigated via direct access (Search Eng...

7 Jan at 10:19

Is it possible to add Request Headers to an iframe src request?

Is it possible to add Request Headers to an iframe src request? I understand that you can set HTTP request headers very easily when making AJAX calls in JavaScript. However is it also possible to set ...

17 Nov at 17:16

How to embed an autoplaying YouTube video in an iframe?

How to embed an autoplaying YouTube video in an iframe? I am trying to embed the new iframe version of a YouTube video and get it to auto play. As far as I can tell, there is no way of doing this by a...

iFrame onload JavaScript event

iFrame onload JavaScript event I have an iFrame, where I want to send a JavaScript command after loading. My current code looks like this: But with this code the command isn't executed. What must I ch...

How to auto-size an iFrame?

How to auto-size an iFrame? > [Resizing an iframe based on content](https://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content) I'm loading an iFrame and want the parent to autom...

23 May at 12:1

How to center an iframe horizontally?

How to center an iframe horizontally? Consider the following example: ([live demo](http://jsfiddle.net/wYNSu/)) HTML: CSS: Result: ![enter image description here](https://i.stack.imgur.com/d82gb.png) ...

How to open a PDF file in an <iframe>?

How to open a PDF file in an ? I want to open the pdf file in an iframe. I am using following code: It is opening fine in Firefox, but it is not opening in IE8. Does anyone know how to make it work al...

2 Dec at 13:53

"Full screen" <iframe>

"Full screen" When I use the following code to create an iframe: The iframe doesn't go all the way—a 10px white "border" surrounds the iframe. How could I solve this? Here is an image of the problem: ...

14 Jul at 17:4

How do I print an IFrame from javascript in Safari/Chrome

How do I print an IFrame from javascript in Safari/Chrome Can someone please help me out with printing the contents of an IFrame via a javascript call in Safari/Chrome. This works in firefox: this wor...

23 Jan at 13:53

Adjust width and height of iframe to fit with content in it

Adjust width and height of iframe to fit with content in it I need a solution for the `width` and `height` of an `iframe` to barely fit its content. The point is that the width and height can be chang...

1 Aug at 10:29

How to display loading message when an iFrame is loading?

How to display loading message when an iFrame is loading? I have an iframe that loads a third party website which is extremely slow to load. Is there a way I can display a loading message while that i...

19 Jul at 12:19

How to disable auto-play for local video in iframe

How to disable auto-play for local video in iframe How to disable auto-play for video when src is from my local pc? I have tried the following, but it doesn't work: - `src="videos/example.mp4?autoplay...

7 Jul at 09:42

How to access the content of an iframe with jQuery?

How to access the content of an iframe with jQuery? How can I access the content of an iframe with jQuery? I tried doing this, but it wouldn't work: `` `$("#myiframe").find("#myContent")` How can I ac...

23 May at 12:10

How to set 'X-Frame-Options' on iframe?

How to set 'X-Frame-Options' on iframe? If I create an `iframe` like this: How can I fix the error: > Refused to display `'https://www.google.com.ua/?gws_rd=ssl'`

19 Jan at 01:54

Inserting the iframe into react component

Inserting the iframe into react component I have a small problem. After requesting a data from a service I got an iframe code in response. I would like to pass this in as a props to my modal component...

22 Sep at 14:28

jQuery iframe load() event?

jQuery iframe load() event? Does anyone know if there is such a thing? I have a iframe that's being inserted with `$.ajax()` and I want to do some stuff after the contents from the iframe are complete...

26 Apr at 09:36

Alternative for frames in html5 using iframes

Alternative for frames in html5 using iframes I am new to HTML5 and I have done some research and found out that the use of `` is outdated and from what I read `` are not. So can someone help me, I wa...

31 Jan at 01:31

How to allow http content within an iframe on a https site

How to allow http content within an iframe on a https site I load some HTML into an iframe but when a file referenced is using http, not https, I get the following error: > [blocked] The page at {curr...

5 Jan at 12:39

Resizing an iframe based on content

Resizing an iframe based on content I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes. How do I resize the iframes to fit the heigh...

30 Mar at 12:10

How to set iframe size dynamically

How to set iframe size dynamically How should I set the dimensions of an iframe dynamically, so the size is flexible for different viewport sizes? For example: In this case the height is different dep...

3 May at 19:54

Failed to load resource: net::ERR_INSECURE_RESPONSE

Failed to load resource: net::ERR_INSECURE_RESPONSE IS there a way to trick the server so I don't get this error: Content was blocked because it was not signed by a valid security certificate. I'm pu...

How can I access iframe elements with Javascript?

How can I access iframe elements with Javascript? I have a webpage where there is a textarea within a iframe. I need to read the value of this textarea from its child page JavaScript. Presently by usi...

5 Sep at 18:51

how to properly display an iFrame in mobile safari

how to properly display an iFrame in mobile safari I'm trying to display an iframe in my mobile web application, but I'm having trouble restricting the size of the iframe to the dimensions of the iPho...

11 Mar at 03:5

IFRAMEs and the Safari on the iPad, how can the user scroll the content?

IFRAMEs and the Safari on the iPad, how can the user scroll the content? According to the Apple iOS mantra it should be possible to scroll the contents of an IFRAME by dragging it with two fingers. Un...

1 Aug at 18:16

load iframe in bootstrap modal

load iframe in bootstrap modal I want to load an iframe into a bootstrap modal and show a loader before the iframe is loaded. I am using a simple jquery click function, but it is not working. I do not...