Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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?

irt.org | Knowledge Base | JavaScript | Event | Q725 [ previous next ]

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?

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/


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.