Get to know MDN better
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 HTMLFrameSetElementInherits properties from its parent, HTMLElement.
HTMLFrameSetElement.colsA string structured as a comma-separated list specifying the width of each column inside a frameset.
HTMLFrameSetElement.rowsA string structured as a comma-separated list specifying the height of each column inside a frameset.
No specific method; inherits methods from its parent, HTMLElement.
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.
Fired after the associated document has started printing or the print preview has been closed.
HTMLFrameSetElement.onbeforeprintFired when the associated document is about to be printed or previewed for printing.
HTMLFrameSetElement.onbeforeunloadFired when the window, the document and its resources are about to be unloaded.
HTMLFrameSetElement.ongamepadconnectedFired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used.
HTMLFrameSetElement.ongamepaddisconnectedFired when the browser detects that a gamepad has been disconnected.
HTMLFrameSetElement.onhashchangeFired when the fragment identifier of the URL has changed (the part of the URL beginning with and following the # symbol).
HTMLFrameSetElement.onlanguagechangeFired when the user's preferred language changes.
HTMLFrameSetElement.onmessageFired when the window receives a message, for example from a call to Window.postMessage() from another browsing context.
HTMLFrameSetElement.onmessageerrorFired when the window receives a message that can't be deserialized.
HTMLFrameSetElement.onofflineFired when the browser has lost access to the network and the value of Navigator.onLine switches to false.
HTMLFrameSetElement.ononlineFired when the browser has gained access to the network and the value of Navigator.onLine switches to true.
HTMLFrameSetElement.onpagehideFired when the browser hides the current page in the process of presenting a different page from the session's history.
HTMLFrameSetElement.onpageshowFired when the browser displays the window's document due to navigation.
HTMLFrameSetElement.onpopstateFired when the active history entry changes while the user navigates the session history.
HTMLFrameSetElement.onrejectionhandledFired whenever a JavaScript Promise is rejected and the rejection has been handled.
HTMLFrameSetElement.onstorageFired when a storage area (localStorage) has been modified in the context of another document.
HTMLFrameSetElement.onunhandledrejectionFired whenever a Promise is rejected but the rejection was not handled.
HTMLFrameSetElement.onunloadFired when the document is being unloaded.
| HTML # htmlframesetelement |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Oct 16, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.