Feedback on: irt.org FAQ Knowledge Base Q212
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
One can also maximize the window using IE4+ with the following code:
window.resizeTo(window.screen.availWidth, window.screen.availHeight);
Worth:
Not worth reading
Length:
Too short
Technical:
Not technical enough
Comments:
Resizing a window IS NOT the same thing as maximize. For example, is you are using the MS Office tool bar (or similar tool bar) the window.screen.availWidth and availHeight do NOT return the actual available height or width depending on where the tool bar is anchored. If one uses this technique to size the window, the tool bar will appear over the top of the browser window, however, if you then click on the maximize button, the browser window is properly sized.
Comments:
Why not
if (window.screen) {
window.moveTo(0,0);
window.height = screen.availHeight;
window.width = screen.availWidth;
}
for both IE and NS ???
Michel
PS: your mailer removes commented script
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
I have written a simple script that automatically maximises the browser window when it is loaded within a webpage in both Netscape and Internet Explorer.
The script goes as follows:
<script language="JavaScript">
window.moveTo(0,0);
if (IE) {
window.resizeTo(screen.availWidth,screen.availHeight);
}
if (NS) {
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
</script>
Nick Lowe
nicklowe@ukonline.co.uk
Worth:
Not worth reading
Comments:
window.resizeTo is not available to Internet Explorer, according to the Javascript Bible by Danny Goodman, and verified by field testing.
The initial comment, "only in Netscape 4" prevails, unless you can come up with some other solution.
Comments:
As usual further testing reveals why I did not get a response from IE using resizeTo. The window being referenced was in a frame.
Yes, issuing parent.resizeTo(800,600) did resize the frameset window, despite the Javascript Bible saying this method was only available to NN4.
Worth:
Not worth reading
Length:
Too short
Technical:
Not technical enough
Comments:
Hmm thanks for wasting my time... this is not maximizing the window, this is just resizing to cover the screen. Any programmer worth his salt would know the difference.
Worth:
Not worth reading
Length:
Too short
Technical:
Not technical enough
Comments:
Are you crazy? This isn't maximising the window! What do you think hapens when you use window.moveto(0,0), if you also use an office toolbar down the left hand side?
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
Well seeing as you cant maximise the window automatically this is the next best thing and it does work in both IE and NS if you use the updated code. just remember to add
<BR>IE = navigator.appName=="Microsoft Internet Explorer"
<BR>
NS = navigator.appName=="Netscape"
Also calling it maximising makes it easier to find in a search whos going to look for cover the screen huh joe.... and any programmer who knows their salt wouldnt be a web programmer