Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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?

You are here: irt.org | FAQ | JavaScript | Java | Q905 [ previous next ]

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>

©2018 Martin Webb