javascript rezize with IE & XP

M

mindseeker

i have a html page that is opened from anoth browser with toolbar etc
off, when the page is opened it resizes to the users screen. it has
javascript which gets the screen size then plugs these numbers into the
resize function.

now, it doesnt resize correctly under XP with IE, it is either not wide
enough or high enough. however, if i F5 to refresh, it will then resize
correctly!

Netscape and mozilla is fine. It resizes fine under WIN2k and IE aswell!

is this sum bug? because its driving me crazy and i cant find a work around.
this also happens on other people computers aswell, so i know its just
not me.


the code is
<HTML>
<HEAD>
<TITLE>test</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
var winHeight=screen.height;
var winWidth=screen.width;

winHeight = winHeight-25;

window.resizeTo(winWidth,winHeight);
window.moveTo(0,0);
</SCRIPT>

<BODY BGCOLOR="#FFFFFF">
hi hi</BODY>

</HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top