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

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

irt.org | Knowledge Base | JavaScript | Window | Q1021 [ previous next ]

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

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?'


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.