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

Feedback: irt.org FAQ Knowledge Base Q212

Feedback on: irt.org FAQ Knowledge Base Q212

Sent by James D. Albert on July 14, 1999 at 18:12:41: - feedback #302

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);





Sent by J McManus on October 07, 1999 at 10:22:28: - feedback #499

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.





Sent by michel on May 02, 2000 at 02:09:21: - feedback #1163

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


Sent by Nick Lowe on October 06, 2000 at 14:45:52: - feedback #1831

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


Sent by C. King on March 23, 2001 at 22:52:01: - feedback #2528

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.


Sent by cking on March 23, 2001 at 23:09:44: - feedback #2529

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.


Sent by Joe Sillitoe on May 09, 2001 at 15:25:23: - feedback #2709

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.



Sent by chris on May 28, 2002 at 10:54:02: - feedback #3908

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?


Sent by Wayne Carr on August 17, 2002 at 11:51:46: - feedback #4079

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


©2018 Martin Webb