Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q725 How can I detect that a window has been resized, and upon detection force a reload of the current document into the current frame?

You are here: irt.org | FAQ | JavaScript | Event | Q725 [ previous next ]

In newer browsers (Internet Explorer 4 and Netscape Navigator 4) you can use the onResize event handler:

<BODY onResize="location.reload()">

However, there is a bug in Netscape Navigator 4 when a document is longer/wider than the current window scroll bars are added to the window - which triggers the resize event.

A workaround is detailed at http://www.webreference.com/dhtml/diner/resize/

©2018 Martin Webb