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

Q791 How do I make an object fit into a window that is already specified in size?

You are here: irt.org | FAQ | JavaScript | Window | Q791 [ previous next ]

In Netscape Navigator 4 then yes - although It depends what the object is. Take a Java Applet for example:

<SCRIPT LANGUAGE="JavaScript"><!--

if (document.layers)
    document.write('<APPLET CODE="whatever" WIDTH="' + window.innerWidth + '" HEIGHT="' + window.innerHeight + '"></APPLET>
else
    document.write('<APPLET CODE="whatever" WIDTH="400" HEIGHT="400"></APPLET>

//--></SCRIPT>

©2018 Martin Webb