Questions tagged [iframe]

An 'iframe' is an HTML element that creates an "inline frame" within a document, which allows displaying a separate document in the same page.

An <iframe></iframe> element allows the placement of an inline frame within an HTML document, which allows the display of another, separate document. Any content between the start and close tag of the <iframe> element is ignored.

First introduced by Microsoft Internet Explorer in 1997, standardized in HTML 4.0 Transitional, and allowed in HTML 5. [source]

An inline frame can be the "target" frame for links defined by other elements.

For more information, see MDN: <iframe> element and the W3C specification.

32625 questions
1196
votes
28 answers

How to apply CSS to iframe?

I have a simple page that has some iframe sections (to display RSS links). How can I apply the same CSS format from the main page to the page displayed in the iframe?
John
854
votes
15 answers

How can I access the contents of an iframe with JavaScript/jQuery?

I would like to manipulate the HTML inside an iframe using jQuery. I thought I'd be able to do this by setting the context of the jQuery function to be the document of the iframe, something like: $(function(){ //document ready $('some selector',…
rz.
  • 19,861
  • 10
  • 54
  • 47
840
votes
26 answers

Remove border from IFrame

How would I remove the border from an iframe embedded in my web app? An example of the iframe is: I would like the transition from the content on my page to the contents…
JoelB
  • 349
  • 3
  • 6
  • 11
819
votes
9 answers

SecurityError: Blocked a frame with origin from accessing a cross-origin frame

I am loading an I want it to be able to adjust its height according to the contents inside it, without using scroll.
akashbc
  • 6,415
  • 3
  • 14
  • 4
520
votes
26 answers

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 height of the iframes' content? I've tried to decipher the javascript Google uses but…
larssg
  • 5,385
  • 3
  • 21
  • 23
465
votes
8 answers

Can I use multiple versions of jQuery on the same page?

A project I'm working on requires the use of jQuery on customers' Web pages. Customers will insert a chunk of code that we'll supply which includes a few