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

Q1021 How can I resize the browser and display an image in the center of the browser window?

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

To resize a browser Netscape Navigator 4+ and Internet Explorer 4+:

<SCRIPT LANGUAGE="JavaScript"><!--
if (document.all || document.layers)
    window.resizeTo(400,400)
//--></SCRIPT>

To position an image in the center of the page:

<TABLE WIDTH="100%" HEIGHT="100%">
<TR>
<TD>
<CENTER>
<IMG SRC="picture.gif" WIDTH="200" HEIGHT="200">
</CENTER>
</TD>
</TR>
</TABLE>

Feedback on 'Q1021 How can I resize the browser and display an image in the center of the browser window?'

©2018 Martin Webb