TerenceHewett
asked on
Maximize the browser window
Hi Experts,
I was kindly given some help with maximizing the browser window when opening a webpage. The code works fine on my own PC and opens up to maximize the screen size, although this code does not work on other PC's. Hmmm....not sure how that can be, unless its a setting on my PC that I am unaware about.
I use IE6. Other PC's in my office use IE6 or MSN to browse the web. The PC's that have both IE6 and MSN on them seem to be the main problem areas. On other PC's, IE6 will open the html page but only show half the screen. In MSN the browser will open the html page but only show a quarter of the webpage.
The code I am using is:
<html><head><script language="Javascript">
window.moveTo(0,0);
window.resizeTo(screen.wid th,screen. height);
</script>
<body><img src="images/image1.jpg" width="1280" height="1024"></body></htm l>
Can anybody help me?
Thanks.
Terry
I was kindly given some help with maximizing the browser window when opening a webpage. The code works fine on my own PC and opens up to maximize the screen size, although this code does not work on other PC's. Hmmm....not sure how that can be, unless its a setting on my PC that I am unaware about.
I use IE6. Other PC's in my office use IE6 or MSN to browse the web. The PC's that have both IE6 and MSN on them seem to be the main problem areas. On other PC's, IE6 will open the html page but only show half the screen. In MSN the browser will open the html page but only show a quarter of the webpage.
The code I am using is:
<html><head><script language="Javascript">
window.moveTo(0,0);
window.resizeTo(screen.wid
</script>
<body><img src="images/image1.jpg" width="1280" height="1024"></body></htm
Can anybody help me?
Thanks.
Terry
ASKER
Hi RCMB,
My screen resolution is 1024x768 and not 1024x1280. I can see what you are saying in your post, but I am a little confused. Both my home PC and work PC see the pages maximised, which is correct. Other work PC's (and some other home PC's) are seeing half the screen when the page loads. You cannot even manually maximise the page.
Terry
My screen resolution is 1024x768 and not 1024x1280. I can see what you are saying in your post, but I am a little confused. Both my home PC and work PC see the pages maximised, which is correct. Other work PC's (and some other home PC's) are seeing half the screen when the page loads. You cannot even manually maximise the page.
Terry
ASKER
PS: Thanks for your help on this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry for the delay in responding RCMB. I have been away, but will check the code and let you know if I am still having problems.
Regards,
Terry
Regards,
Terry
ASKER
RCMB, I think your solution has helped me out. The code has worked on the machines I have tested so far. Will be back if I have additional issues.
Really appreciate your help.
Regards,
Terry
Really appreciate your help.
Regards,
Terry
:-)
Check the settings and then you will need to set the img width and height to max the screen resolution.
RCMB