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

Q905 How can I resize an applet in a document when the window is resized to ensure that the applet is always full size within the window?

irt.org | Knowledge Base | JavaScript | Java | Q905 [ previous next ]

Q905 How can I resize an applet in a document when the window is resized to ensure that the applet is always full size within the window?

An applets width and height properties are only available in Internet Explorer 4 - and then they are only read only.

The only possible way is to trap the resize event using the documents onResize event handler in Netscape Navigator 4 and Internet Explorer 4 to reload the page:

<HTML>
<body onResize="document.history.go(0)">

<applet width="100%" height="100%">
</applet>

</body>
</html>

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.