Name
Window.onresize: event handler invoked when a window is resized â JavaScript 1.2:
Synopsis
Function onresize
Description
The onresize
property of
the Window object specifies an event-handler function that is invoked
when the user changes the size of the window or frame.
The initial value of this property is a function that contains
the JavaScript statements specified by the onresize
attribute of the HTML <body>
or <frameset>
tag that defined the
window.
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.