HTMLFrameSetElement

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The HTMLFrameSetElement interface provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.

EventTarget Node Element HTMLElement HTMLFrameSetElement

Instance properties

Inherits properties from its parent, HTMLElement.

HTMLFrameSetElement.cols

A string structured as a comma-separated list specifying the width of each column inside a frameset.

HTMLFrameSetElement.rows

A string structured as a comma-separated list specifying the height of each column inside a frameset.

Instance methods

No specific method; inherits methods from its parent, HTMLElement.

Event handlers

The HTMLElement events are inherited.

The following Window onXYZ event handler properties are also available as aliases targeting the window object. However, it is advised to listen to them on the window object directly rather than on HTMLFrameSetElement.

Note: Using addEventListener() on HTMLFrameSetElement will not work for the onXYZ event handlers listed below. Listen to the events on the window object instead.

HTMLFrameSetElement.onafterprint

Fired after the associated document has started printing or the print preview has been closed.

HTMLFrameSetElement.onbeforeprint

Fired when the associated document is about to be printed or previewed for printing.

HTMLFrameSetElement.onbeforeunload

Fired when the window, the document and its resources are about to be unloaded.

HTMLFrameSetElement.ongamepadconnected

Fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used.

HTMLFrameSetElement.ongamepaddisconnected

Fired when the browser detects that a gamepad has been disconnected.

HTMLFrameSetElement.onhashchange

Fired when the fragment identifier of the URL has changed (the part of the URL beginning with and following the # symbol).

HTMLFrameSetElement.onlanguagechange

Fired when the user's preferred language changes.

HTMLFrameSetElement.onmessage

Fired when the window receives a message, for example from a call to Window.postMessage() from another browsing context.

HTMLFrameSetElement.onmessageerror

Fired when the window receives a message that can't be deserialized.

HTMLFrameSetElement.onoffline

Fired when the browser has lost access to the network and the value of Navigator.onLine switches to false.

HTMLFrameSetElement.ononline

Fired when the browser has gained access to the network and the value of Navigator.onLine switches to true.

HTMLFrameSetElement.onpagehide

Fired when the browser hides the current page in the process of presenting a different page from the session's history.

HTMLFrameSetElement.onpageshow

Fired when the browser displays the window's document due to navigation.

HTMLFrameSetElement.onpopstate

Fired when the active history entry changes while the user navigates the session history.

HTMLFrameSetElement.onrejectionhandled

Fired whenever a JavaScript Promise is rejected and the rejection has been handled.

HTMLFrameSetElement.onstorage

Fired when a storage area (localStorage) has been modified in the context of another document.

HTMLFrameSetElement.onunhandledrejection

Fired whenever a Promise is rejected but the rejection was not handled.

HTMLFrameSetElement.onunload

Fired when the document is being unloaded.

Specifications

Specification
HTML
# htmlframesetelement

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
HTMLFrameSetElement
Deprecated
Chrome – Full support
Chrome 1 (Release date: 2008-12-11)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 1 (Release date: 2004-11-09)
footnote Full support
Opera – Full support
Opera 12.1 (Release date: 2012-11-20)
footnote Full support
Safari – Full support
Safari 3 (Release date: 2007-10-26)
footnote Full support
Chrome Android – Full support
Chrome Android 18 (Release date: 2012-06-27)
footnote Full support
Firefox for Android – Full support
Firefox for Android 4 (Release date: 2011-03-29)
footnote Full support
Opera Android – Full support
Opera Android 12.1 (Release date: 2012-10-09)
footnote Full support
Safari on iOS – Full support
Safari on iOS 1 (Release date: 2007-06-29)
footnote Full support
Samsung Internet – Full support
Samsung Internet 1 (Release date: 2013-04-27)
footnote Full support
WebView Android – Full support
WebView Android 4.4 (Release date: 2013-12-09)
footnote Full support
WebView on iOS – Full support
WebView on iOS 1 (Release date: 2007-06-29)
footnote Full support
cols
Deprecated
Chrome – Full support
Chrome 1 (Release date: 2008-12-11)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 1 (Release date: 2004-11-09)
footnote Full support
Opera – Full support
Opera 12.1 (Release date: 2012-11-20)
footnote Full support
Safari – Full support
Safari 3 (Release date: 2007-10-26)
footnote Full support
Chrome Android – Full support
Chrome Android 18 (Release date: 2012-06-27)
footnote Full support
Firefox for Android – Full support
Firefox for Android 4 (Release date: 2011-03-29)
footnote Full support
Opera Android – Full support
Opera Android 12.1 (Release date: 2012-10-09)
footnote Full support
Safari on iOS – Full support
Safari on iOS 1 (Release date: 2007-06-29)
footnote Full support
Samsung Internet – Full support
Samsung Internet 1 (Release date: 2013-04-27)
footnote Full support
WebView Android – Full support
WebView Android 4.4 (Release date: 2013-12-09)
footnote Full support
WebView on iOS – Full support
WebView on iOS 1 (Release date: 2007-06-29)
footnote Full support
rows
Deprecated
Chrome – Full support
Chrome 1 (Release date: 2008-12-11)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 1 (Release date: 2004-11-09)
footnote Full support
Opera – Full support
Opera 12.1 (Release date: 2012-11-20)
footnote Full support
Safari – Full support
Safari 3 (Release date: 2007-10-26)
footnote Full support
Chrome Android – Full support
Chrome Android 18 (Release date: 2012-06-27)
footnote Full support
Firefox for Android – Full support
Firefox for Android 4 (Release date: 2011-03-29)
footnote Full support
Opera Android – Full support
Opera Android 12.1 (Release date: 2012-10-09)
footnote Full support
Safari on iOS – Full support
Safari on iOS 1 (Release date: 2007-06-29)
footnote Full support
Samsung Internet – Full support
Samsung Internet 1 (Release date: 2013-04-27)
footnote Full support
WebView Android – Full support
WebView Android 4.4 (Release date: 2013-12-09)
footnote Full support
WebView on iOS – Full support
WebView on iOS 1 (Release date: 2007-06-29)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.

See also

  • HTML element implementing this interface: <frameset>
  • The equivalent of this element outside of frames: HTMLFrameSetElement.