Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 660191 of HTMLFrameSetElement

  • Revision slug: Web/API/HTMLFrameSetElement
  • Revision title: HTMLFrameSetElement
  • Revision id: 660191
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment WIP

Revision Content

{{APIREF}}{{Obsolete_header}}

The HTMLFrameSetElement interface provides special properties (beyond those of the regular {{ domxref("HTMLElement") }} interface they also inherit) for manipulating {{HTMLELEment("frameset")}} elements.

Properties

Inherits properties from its parent, {{domxref("HTMLElement")}} and from {{domxref("WindowEventHandlers")}}.

{{domxref("HTMLFrameSetElement.cols")}} {{obsolete_inline}}
Is a {{ domxref("DOMString") }} that represents the foreground color of text.
{{domxref("HTMLFrameSetElement.rows")}} {{obsolete_inline}}
Is a {{ domxref("DOMString") }} that represents the color of visited links.

Methods

No specific method; inherits methods from its parent, {{domxref("HTMLElement")}} and from {{domxref("WindowEventHandlers")}}.

Event handlers

No specific event handler; inherits event handlers from its parent, {{domxref("HTMLElement")}} and from {{domxref("WindowEventHandlers")}}.

{{domxref("WindowEventHandlers.onafterprint")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("afterprint")}} event is raised.
{{domxref("WindowEventHandlers.onbeforeprint")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.
{{domxref("WindowEventHandlers.onbeforeunload")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.
{{domxref("WindowEventHandlers.onhashchange")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("hashchange")}} event is raised.
{{domxref("WindowEventHandlers.onlanguagechange")}} {{experimental_inline}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("languagechange")}} event is raised.
{{domxref("WindowEventHandlers.onmessage")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.
{{domxref("WindowEventHandlers.onoffline")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.
{{domxref("WindowEventHandlers.ononline")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.
{{domxref("WindowEventHandlers.onpagehide")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pagehide")}} event is raised.
{{domxref("WindowEventHandlers.onpageshow")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pageshow")}} event is raised.
{{domxref("WindowEventHandlers.onpopstate")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("popstate")}} event is raised.
{{domxref("WindowEventHandlers.onresize")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("resize")}} event is raised.
{{domxref("WindowEventHandlers.onstorage")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("storage")}} event is raised.
{{domxref("WindowEventHandlers.onunload")}}
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("unload")}} event is raised.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', "#htmlframesetelement", "HTMLBodyElement")}} {{Spec2('HTML WHATWG')}} Technically, the event-related properties,onafterprint, onbeforeprint, onbeforeunload, onblur, onerror, onfocus, onhashchange, onlanguagechange, onload, onmessage, onoffline, ononline, onpopstate, onresize, onstorage, and onunload, have been moving to the {{domxref("WindowEventHandlers")}} interface, and HTMLBodyElement implements this interface.
{{SpecName('HTML5 W3C', "#htmlframesetelementt", "HTMLBodyElement")}} {{Spec2('HTML5 W3C')}} The following properties are now obsolete: aLink, bgColor, background, link, text, and vLink.
The following properties have been added: onafterprint, onbeforeprint, onbeforeunload, onblur, onerror, onfocus, onhashchange, onload, onmessage, onoffline, ononline, onpopstate, onresize, onstorage, and onunload.
{{SpecName('DOM2 HTML', 'html.html#ID-ID-62018039', 'HTMLBodyElement')}} {{Spec2('DOM2 HTML')}} No change from {{SpecName("DOM1")}}.
{{SpecName('DOM1', 'level-one-html.html#ID-62018039', 'HTMLBodyElement')}} {{Spec2('DOM1')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 {{CompatGeckoDesktop(1.0)}} 4.0 {{CompatVersionUnknown}} [1] {{CompatVersionUnknown}}
onXYZ event handlers {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile(1.0)}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
onXYZ event handlers {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

See also

  • HTML element implementing this interface: {{ HTMLElement("frameset") }}
  • The equivalent of this element outside of frames: {{domxref("HTMLBodyElement")}}.

Revision Source

<p>{{APIREF}}{{Obsolete_header}}</p>
<p>The <strong><code>HTMLFrameSetElement</code></strong> interface provides special properties (beyond those of the regular {{ domxref("HTMLElement") }} interface they also inherit) for manipulating {{HTMLELEment("frameset")}} elements.</p>
<h2 id="Properties">Properties</h2>
<p><em>Inherits properties from its parent, {{domxref("HTMLElement")}} and from {{domxref("WindowEventHandlers")}}.</em></p>
<dl>
 <dt>
  {{domxref("HTMLFrameSetElement.cols")}} {{obsolete_inline}}</dt>
 <dd>
  Is a {{ domxref("DOMString") }} that represents the foreground color of text.</dd>
 <dt>
  {{domxref("HTMLFrameSetElement.rows")}} {{obsolete_inline}}</dt>
 <dd>
  Is a {{ domxref("DOMString") }} that represents the color of visited links.</dd>
</dl>
<h2 id="Methods">Methods</h2>
<p><em>No specific method; inherits methods from its parent, {{domxref("HTMLElement")}} and from {{domxref("WindowEventHandlers")}}</em><em>.</em></p>
<h2 id="Event_handlers">Event handlers</h2>
<p><em>No specific event handler; inherits event handlers from its parent, {{domxref("HTMLElement")}} and from {{domxref("WindowEventHandlers")}}</em><em>.</em></p>
<dl>
 <dt>
  {{domxref("WindowEventHandlers.onafterprint")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("afterprint")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onbeforeprint")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onbeforeunload")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onhashchange")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("hashchange")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onlanguagechange")}} {{experimental_inline}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onmessage")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onoffline")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.ononline")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onpagehide")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pagehide")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onpageshow")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pageshow")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onpopstate")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onresize")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("resize")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onstorage")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("storage")}} event is raised.</dd>
 <dt>
  {{domxref("WindowEventHandlers.onunload")}}</dt>
 <dd>
  Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("unload")}} event is raised.</dd>
</dl>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', "#htmlframesetelement", "HTMLBodyElement")}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Technically, the event-related properties,<code>onafterprint</code>, <code>onbeforeprint</code>, <code>onbeforeunload</code>, <code>onblur</code>, <code>onerror</code>, <code>onfocus</code>, <code>onhashchange</code>, <code>onlanguagechange</code>, <code>onload</code>, <code>onmessage</code>, <code>onoffline</code>, <code>ononline</code>, <code>onpopstate</code>, <code>onresize</code>, <code>onstorage</code>, and <code>onunload</code>, have been moving to the {{domxref("WindowEventHandlers")}} interface, and <code>HTMLBodyElement</code> implements this interface.</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', "#htmlframesetelementt", "HTMLBodyElement")}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>The following properties are now obsolete: <code>aLink</code>, <code>bgColor</code>, <code>background</code>, <code>link</code>, <code>text</code>, and <code>vLink</code>.<br />
    The following properties have been added: <code>onafterprint</code>, <code>onbeforeprint</code>, <code>onbeforeunload</code>, <code>onblur</code>, <code>onerror</code>, <code>onfocus</code>, <code>onhashchange</code>, <code>onload</code>, <code>onmessage</code>, <code>onoffline</code>, <code>ononline</code>, <code>onpopstate</code>, <code>onresize</code>, <code>onstorage</code>, and <code>onunload</code>.</td>
  </tr>
  <tr>
   <td>{{SpecName('DOM2 HTML', 'html.html#ID-ID-62018039', 'HTMLBodyElement')}}</td>
   <td>{{Spec2('DOM2 HTML')}}</td>
   <td>No change from {{SpecName("DOM1")}}.</td>
  </tr>
  <tr>
   <td>{{SpecName('DOM1', 'level-one-html.html#ID-62018039', 'HTMLBodyElement')}}</td>
   <td>{{Spec2('DOM1')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>
<h2 id="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>{{CompatGeckoDesktop(1.0)}}</td>
    <td>4.0</td>
    <td>{{CompatVersionUnknown}} [1]</td>
    <td>{{CompatVersionUnknown}}</td>
   </tr>
   <tr>
    <td><code>onXYZ</code> event handlers</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</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>{{CompatGeckoMobile(1.0)}}</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
   </tr>
   <tr>
    <td><code>onXYZ</code> event handlers</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
   </tr>
  </tbody>
 </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
 <li>HTML element implementing this interface: {{ HTMLElement("frameset") }}</li>
 <li>The equivalent of this element outside of frames: {{domxref("HTMLBodyElement")}}.</li>
</ul>
Revert to this revision