<iframe>

  • Revision slug: Web/HTML/Element/iframe
  • Revision title: <iframe>
  • Revision id: 470959
  • Created:
  • Creator: justleroy
  • Is current revision? No
  • Comment Fixed the HTML 4.01 link.

Revision Content

Summary

The HTML <iframe> Element (or HTML inline frame element) represents a nested browsing context, effectively embedding another HTML page into the current page. In HTML 4.01, a document may contain a head and a body or a head and a frame-set, but not both a body and a frame-set. However,an <iframe> can be used within a normal document body. Each browsing context has its own session history and active document. The browsing context that contains the embedded content is called the parent browsing context. The top-level browsing context (which has no parent) is typically the browser window.

  • Content categories Flow content, phrasing content, embedded content, interactive content, palpable content.
  • Permitted contentSpecial, see prose
  • Tag omission {{no_tag_omission}}
  • Permitted parent elements Any element that accepts embedded content.
  • DOM interface {{domxref("HTMLIFrameElement")}}

Attributes

This element includes the global attributes.

{{htmlattrdef("align")}} {{deprecated_inline("html4.01")}}, {{obsolete_inline("html5")}}
The alignment of this element with respect to the surrounding context.
{{htmlattrdef("allowfullscreen")}}
This attribute can be set to true if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.mozRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.
{{htmlattrdef("frameborder")}} {{HTMLVersionInline(4)}} only
The value 1 (the default) tells the browser to draw a border between this frame and every other frame. The value 0 tells the browser not to draw a border between this frame and other frames.
{{htmlattrdef("height")}}
Indicates the height of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.
{{htmlattrdef("longdesc")}} {{HTMLVersionInline(4)}} only
A URI of a long description of the frame. Due to widespread misuse, this is not helpful for non-visual browsers.
{{htmlattrdef("marginheight")}} {{HTMLVersionInline(4)}} only
The amount of space in pixels between the frame's content and its top and bottom margins.
{{htmlattrdef("marginwidth")}} {{HTMLVersionInline(4)}} only
The amount of space in pixels between the frame's content and its left and right margins.
{{htmlattrdef("mozallowfullscreen")}} {{non-standard_inline}} {{deprecated_inline}}
Use allowfullscreen instead. In Gecko 9.0 or later, this attribute can be set to true if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.mozRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.
{{htmlattrdef("webkitallowfullscreen")}} {{non-standard_inline}} {{deprecated_inline}}
Use allowfullscreen instead. In Chrome 17 or later (and maybe earlier), this attribute can be set to true if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.webkitRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.
{{htmlattrdef("mozapp")}} {{non-standard_inline}} {{B2GOnlyInline}}
For frames hosting an open web app, this specifies the URL of the app manifest. This ensures that the app is loaded with the right permissions. See Using the Browser API for details. Available in Gecko 13.0 and later.
{{htmlattrdef("mozbrowser")}} {{non-standard_inline}} {{B2GOnlyInline}}
Indicates that the frame is to appear like a top-level browser window to the embedded content. This means that {{domxref("window.top")}}, {{domxref("window.parent")}}, {{domxref("window.frameElement")}}, etc. will not reflect the frame hierarchy. This allows for a web browser UI to be implemented entirely with web technology, given the right permissions. See Using the Browser API for details. Available in Gecko 13.0 and later.
{{htmlattrdef("name")}}
A name for the embedded browsing context (or frame). This can be used as the value of the target attribute of an {{HTMLElement("a")}} or {{HTMLElement("form")}} element, or the formtarget attribute of an {{HTMLElement("input")}} or {{HTMLElement("button")}} element.
{{htmlattrdef("remote")}} {{non-standard_inline}} {{B2GOnlyInline}}
Load the frame's page in a separate content process.
{{htmlattrdef("scrolling")}} {{HTMLVersionInline(4)}} only
Enumerated attribute indicating when the browser should provide a scroll bar (or other scrolling device) for the frame:
  • auto: Only when needed.
  • yes: Always provide a scroll bar.
  • no: Never provide a scoll bar.
{{htmlattrdef("sandbox")}} {{HTMLVersionInline(5)}} only
If specified as an empty string, this attribute enables extra restrictions on the content that can appear in the inline frame. The value of the attribute can either be an empty string (all the restrictions are applied), or a space-separated list of tokens that lift particular restrictions. Valid tokens are:
  • allow-same-origin: Allows the content to be treated as being from its normal origin. If this keyword is not used, the embedded content is treated as being from a unique origin.
  • allow-top-navigation: Allows the embedded browsing context to navigate (load) content to the top-level browsing context. If this keyword is not used, this operation is not allowed.
  • allow-forms: Allows the embedded browsing context to submit forms. If this keyword is not used, this operation is not allowed.
  • allow-scripts: Allows the embedded browsing context to run scripts (but not create pop-up windows). If this keyword is not used, this operation is not allowed.

Note:

  • When the embedded document has the same origin as the main page, it is strongly discouraged to use both allow-scripts and allow-same-origin at the same time, as that allows the embedded document to programmatically remove the sandbox attribute. Although it is accepted, this case is no more secure than not using the sandbox attribute.
  • Sandboxing in general is only of minimal help if the attacker can arrange for the potentially hostile content to be displayed in the user's browser outside a sandboxed iframe. It is recommended that such content should be served from a separate dedicated domain, to limit the potential damage.
  • The sandbox attribute is not supported in Internet Explorer 9 and earlier versions, or in Opera.
{{htmlattrdef("seamless")}} {{HTMLVersionInline(5)}} only
This Boolean attribute indicates that the browser should render the inline frame in a way that makes it appear to be part of the containing document, for example by applying CSS styles that apply to the <iframe> to the contained document before styles specified in that document, and by opening links in the contained documents in the parent browsing context (unless another setting prevents this). In XHTML, attribute minimization is forbidden, and the seamless attribute must be defined as <iframe seamless="seamless">.
{{htmlattrdef("src")}}
The URL of the page to embed.
{{htmlattrdef("srcdoc")}} {{HTMLVersionInline(5)}} only
The content of the page that the embedded context is to contain. This attribute is expected to be used together with the sandbox and seamless attributes. If a browser supports the srcdoc attribute, it will override the content specified in the src attribute (if present). If a browser does NOT support the srcdoc attribute, it will show the file specified in the src attribute instead (if present).
{{htmlattrdef("width")}}
Indicates the width of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.

Scripting

Inline frames, like {{HTMLElement("frame")}} elements, enter the {{domxref("window.frames")}} pseudo-array.

From the DOM iframe element, scripts can get access to the {{domxref("window")}} object of the included HTML page via the contentWindow property. The contentDocument property refers to the document element inside the iframe (this is equivalent to contentWindow.document), but is not supported by Internet Explorer versions before IE8.

From the inside of a frame, a script can get a reference to the parent window via {{domxref("window.parent")}}.

Scripts trying to access a frame's content are subject to the same-origin policy, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with {{domxref("window.postMessage")}}.

Example

<script type="text/javascript">
  var iframe = window.getElementsByTagName( "iframe" )[ 0 ];
  alert( "Frame title: " + iframe.contentWindow.title );
</script>


<iframe src="page.html" width="300" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

Notes

{{gecko_callout_heading("6.0")}}

Starting in Gecko 6.0 {{geckoRelease("6.0")}}, rendering of inline frames correctly respects the borders of their containing element when they're rounded using {{cssxref("border-radius")}}.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-iframe-element', '<iframe>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-iframe-element', '<iframe>')}} {{Spec2('HTML5 W3C')}}  
{{SpecName('HTML4.01', 'present/frames.html#h-16.5', '<iframe>')}} {{Spec2('HTML4.01')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
sandbox 4 {{CompatGeckoDesktop("17.0")}} 10 15 5
seamless 22 {{CompatNo}} {{CompatUnknown}} 15 6
srcdoc 4 {{CompatGeckoDesktop("25.0")}} {{CompatUnknown}} 15 {{CompatUnknown}}
allowfullscreen 17 {{property_prefix("webkit")}}
{{CompatNightly("webkit")}}
{{CompatGeckoDesktop("9.0")}} {{property_prefix("moz")}}
{{CompatGeckoDesktop("18.0")}}
{{CompatNo}} {{CompatVersionUnknown}} {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
sandbox 2.2 {{CompatGeckoMobile("17.0")}} 10 {{CompatNo}} 4.2
seamless {{CompatUnknown}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
srcdoc {{CompatUnknown}} {{CompatGeckoMobile("25.0")}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
allowfullscreen {{CompatUnknown}} {{CompatGeckoMobile("9.0")}}{{property_prefix("moz")}}
{{CompatGeckoMobile("18.0")}}
{{CompatNo}} {{CompatNo}} {{CompatNo}}
 
{{HTML:Element_Navigation}}

Revision Source

<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;iframe&gt;</code> Element</strong> (or <em>HTML inline frame element</em>) represents a nested browsing context, effectively embedding another HTML page into the current page. In HTML 4.01, a document may contain a <code>head</code> and a <code>body</code> or a <code>head</code> and a <code>frame-set</code>, but not both a <code>body</code> and a <code>frame-set</code>. However,an <code>&lt;iframe&gt;</code> can be used within a normal document body. Each browsing context has its own session history and active document. The browsing context that contains the embedded content is called the <dfn>parent</dfn> browsing context. The <dfn>top-level</dfn> browsing context (which has no parent) is typically the browser window.</p>
<ul class="htmlelt">
  <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>, embedded content, interactive content, palpable content.</li>
  <li><dfn>Permitted content</dfn>Special, see prose</li>
  <li><dfn>Tag omission</dfn> {{no_tag_omission}}</li>
  <li><dfn>Permitted parent elements</dfn> Any element that accepts embedded content.</li>
  <li><dfn>DOM interface</dfn> {{domxref("HTMLIFrameElement")}}</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p><span style="line-height: 21px;">This element includes the&nbsp;</span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">global attributes</a><span style="line-height: 21px;">.</span></p>
<dl>
  <dt>
    {{htmlattrdef("align")}} {{deprecated_inline("html4.01")}}, {{obsolete_inline("html5")}}</dt>
  <dd>
    The alignment of this element with respect to the surrounding context.</dd>
  <dt>
    {{htmlattrdef("allowfullscreen")}}</dt>
  <dd>
    This attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.mozRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.</dd>
  <dt>
    {{htmlattrdef("frameborder")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    The value 1 (the default) tells the browser to draw a border between this frame and every other frame. The value 0 tells the browser not to draw a border between this frame and other frames.</dd>
  <dt>
    {{htmlattrdef("height")}}</dt>
  <dd>
    Indicates the height of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.</dd>
  <dt>
    {{htmlattrdef("longdesc")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    A URI of a long description of the frame. Due to widespread misuse, this is not helpful for non-visual browsers.</dd>
  <dt>
    {{htmlattrdef("marginheight")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    The amount of space in pixels between the frame's content and its top and bottom margins.</dd>
  <dt>
    {{htmlattrdef("marginwidth")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    The amount of space in pixels between the frame's content and its left and right margins.</dd>
  <dt>
    {{htmlattrdef("mozallowfullscreen")}} {{non-standard_inline}} {{deprecated_inline}}</dt>
  <dd>
    Use <code><strong>allowfullscreen</strong></code> instead. In Gecko 9.0 or later, this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.mozRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.</dd>
  <dt>
    {{htmlattrdef("webkitallowfullscreen")}} {{non-standard_inline}} {{deprecated_inline}}</dt>
  <dd>
    Use <code><strong>allowfullscreen</strong></code> instead. In Chrome 17 or later (and maybe earlier), this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.webkitRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.</dd>
  <dt>
    {{htmlattrdef("mozapp")}} {{non-standard_inline}} {{B2GOnlyInline}}</dt>
  <dd>
    For frames hosting an <a href="/en-US/docs/Apps" title="OpenWebApps">open web app</a>, this specifies the URL of the <a href="/en-US/docs/Apps/Manifest" title="Apps/Manifest">app manifest</a>. This ensures that the app is loaded with the right permissions. See <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd>
  <dt>
    {{htmlattrdef("mozbrowser")}} {{non-standard_inline}} {{B2GOnlyInline}}</dt>
  <dd>
    Indicates that the frame is to appear like a top-level browser window to the embedded content. This means that {{domxref("window.top")}}<span id="summary_alias_container"><span id="short_desc_nonedit_display">, </span></span>{{domxref("window.parent")}}<span id="summary_alias_container"><span id="short_desc_nonedit_display">, </span></span>{{domxref("window.frameElement")}},<span id="summary_alias_container"><span id="short_desc_nonedit_display"> etc. will <em>not</em> reflect the frame hierarchy. This allows for a web browser UI to be implemented entirely with web technology, given the right permissions.</span></span> See <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd>
  <dt id="name-attribute">
    {{htmlattrdef("name")}}</dt>
  <dd>
    A name for the embedded browsing context (or frame). This can be used as the value of the <code><strong>target</strong></code> attribute of an {{HTMLElement("a")}} or {{HTMLElement("form")}} element, or the formtarget attribute of an {{HTMLElement("input")}} or {{HTMLElement("button")}} element.</dd>
  <dt>
    {{htmlattrdef("remote")}} {{non-standard_inline}} {{B2GOnlyInline}}</dt>
  <dd>
    Load the frame's page in a separate content process.</dd>
  <dt>
    {{htmlattrdef("scrolling")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    Enumerated attribute indicating when the browser should provide a scroll bar (or other scrolling device) for the frame:
    <ul>
      <li><code>auto</code>: Only when needed.</li>
      <li><code>yes</code>: Always provide a scroll bar.</li>
      <li><code>no</code>: Never provide a scoll bar.</li>
    </ul>
  </dd>
  <dt>
    {{htmlattrdef("sandbox")}} {{HTMLVersionInline(5)}} only</dt>
  <dd>
    If specified as an empty string, this attribute enables extra restrictions on the content that can appear in the inline frame. The value of the attribute can either be an empty string (all the restrictions are applied), or a space-separated list of tokens that lift particular restrictions. Valid tokens are:
    <ul>
      <li><code>allow-same-origin</code>: Allows the content to be treated as being from its normal origin. If this keyword is not used, the embedded content is treated as being from a unique origin.</li>
      <li><code>allow-top-navigation</code>: Allows the embedded browsing context to navigate (load) content to the top-level browsing context. If this keyword is not used, this operation is not allowed.</li>
      <li><code>allow-forms</code>: Allows the embedded browsing context to submit forms. If this keyword is not used, this operation is not allowed.</li>
      <li><code>allow-scripts</code>: Allows the embedded browsing context to run scripts (but not create pop-up windows). If this keyword is not used, this operation is not allowed.</li>
    </ul>
    <div class="note">
      <p><strong>Note:</strong></p>
      <ul>
        <li>When the embedded document has the same origin as the main page, it is strongly discouraged to use both <code>allow-scripts</code> and <code>allow-same-origin</code> at the same time, as that allows the embedded document to programmatically remove the <code>sandbox</code> attribute. Although it is accepted, this case is no more secure than not using the <code>sandbox</code> attribute.</li>
        <li>Sandboxing in general is only of minimal help if the attacker can arrange for the potentially hostile content to be displayed in the user's browser outside a sandboxed <code>iframe</code>. It is recommended that such content should be served from a <em>separate dedicated domain</em>, to limit the potential damage.</li>
        <li>The <code>sandbox</code> attribute is not supported in Internet Explorer 9 and earlier versions, or in Opera.</li>
      </ul>
    </div>
  </dd>
  <dt>
    {{htmlattrdef("seamless")}} {{HTMLVersionInline(5)}} only</dt>
  <dd>
    This <strong>Boolean attribute</strong> indicates that the browser should render the inline frame in a way that makes it appear to be part of the containing document, for example by applying CSS styles that apply to the <code>&lt;iframe&gt;</code>&nbsp;to the contained document before styles specified in that document, and by opening links in the contained documents in the parent browsing context (unless another setting prevents this). In XHTML, attribute minimization is forbidden, and the seamless attribute must be defined as <code>&lt;iframe seamless="seamless"&gt;</code>.</dd>
  <dt>
    {{htmlattrdef("src")}}</dt>
  <dd>
    The URL of the page to embed.</dd>
  <dt>
    {{htmlattrdef("srcdoc")}} {{HTMLVersionInline(5)}} only</dt>
  <dd>
    The content of the page that the embedded context is to contain. This attribute is expected to be used together with the sandbox and seamless attributes. If a browser supports the <code>srcdoc</code> attribute, it will override the content specified in the <code>src</code> attribute (if present). If a browser does NOT support the <code>srcdoc</code> attribute, it will show the file specified in the <code>src</code> attribute instead (if present).</dd>
  <dt>
    {{htmlattrdef("width")}}</dt>
  <dd>
    Indicates the width of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.</dd>
</dl>
<h2 id="Scripting">Scripting</h2>
<p>Inline frames, like {{HTMLElement("frame")}} elements, enter the {{domxref("window.frames")}} pseudo-array.</p>
<p>From the DOM <code>iframe</code> element, scripts can get access to the {{domxref("window")}} object of the included HTML page via the <code>contentWindow</code> property. The <code>contentDocument</code> property refers to the document element inside the <code>iframe</code> (this is equivalent to <code>contentWindow.document</code>), but is not supported by Internet Explorer versions before IE8.</p>
<p>From the inside of a frame, a script can get a reference to the parent window via {{domxref("window.parent")}}.</p>
<p>Scripts trying to access a frame's content are subject to the <a href="/en-US/docs/Same_origin_policy_for_JavaScript" title="Same origin policy for JavaScript">same-origin policy</a>, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with {{domxref("window.postMessage")}}.</p>
<h2 id="Example">Example</h2>
<pre class="brush: html">
&lt;script type="text/javascript"&gt;
  var iframe = window.getElementsByTagName( "iframe" )[ 0 ];
  alert( "Frame title: " + iframe.contentWindow.title );
&lt;/script&gt;


&lt;iframe src="page.html" width="300" height="300"&gt;
  &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
&lt;/iframe&gt;</pre>
<h2 id="Notes">Notes</h2>
<div class="geckoVersionNote">
  <p>{{gecko_callout_heading("6.0")}}</p>
  <p>Starting in Gecko 6.0 {{geckoRelease("6.0")}}, rendering of inline frames correctly respects the borders of their containing element when they're rounded using {{cssxref("border-radius")}}.</p>
</div>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-iframe-element', '&lt;iframe&gt;')}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-iframe-element', '&lt;iframe&gt;')}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML4.01', 'present/frames.html#h-16.5', '&lt;iframe&gt;')}}</td>
      <td>{{Spec2('HTML4.01')}}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari (WebKit)</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>1.0</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td><code>sandbox</code></td>
        <td>4</td>
        <td>{{CompatGeckoDesktop("17.0")}}</td>
        <td>10</td>
        <td>15</td>
        <td>5</td>
      </tr>
      <tr>
        <td><code>seamless</code></td>
        <td>22</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>15</td>
        <td>6</td>
      </tr>
      <tr>
        <td><code>srcdoc</code></td>
        <td>4</td>
        <td>{{CompatGeckoDesktop("25.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>15</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>allowfullscreen</code></td>
        <td>17 {{property_prefix("webkit")}}<br />
          {{CompatNightly("webkit")}}</td>
        <td>{{CompatGeckoDesktop("9.0")}} {{property_prefix("moz")}}<br />
          {{CompatGeckoDesktop("18.0")}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatNo}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td><code>sandbox</code></td>
        <td>2.2</td>
        <td>{{CompatGeckoMobile("17.0")}}</td>
        <td>10</td>
        <td>{{CompatNo}}</td>
        <td>4.2</td>
      </tr>
      <tr>
        <td><code>seamless</code></td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>srcdoc</code></td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("25.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>allowfullscreen</code></td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("9.0")}}{{property_prefix("moz")}}<br />
          {{CompatGeckoMobile("18.0")}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div>
  &nbsp;</div>
<div>
  {{HTML:Element_Navigation}}</div>
Revert to this revision