Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. window.onresize

« Gecko DOM Reference

Summary

An event handler for the resize event on the window.

Syntax

window.onresize = funcRef;

Parameters

  • funcRef is a reference to a function.

Example

window.onresize = doFunc;
<html>
<head>

<title>onresize test</title>

<script type="text/javascript">

window.onresize = resize;

function resize()
{
 alert("resize event detected!");
}
</script>
</head>

<body>
<p>Resize the browser window to fire the resize event.</p>
</body>
</html>

Notes

The resize event is fired after the window has been resized.

Specification

Not part of specification.

Page last modified 09:43, 16 Aug 2006 by Rikdc?

Files (0)