Fullscreen with Javascript

I have no Problem to open a Browser-Window at a fixed size.
How can I open a fullscreen-window with java script.
Should work for IE4 and Netscape 4.
Thanks
da2121Asked:
Who is Participating?
 
rafisternConnect With a Mentor Commented:
In IE4+ you can use the parameter "fullscreen=1" to open a window taht will full screen to cover the entire screen (like hitting f11) with no window borders.

To full screen a regular window in IE4 do:

moveTo(0,0);
resizeTo(screen.availWidth,screen.availHeight);

or set in the open() command:

open("","","...top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight);


In NS4 you cannot get the screen dimensions.

0
 
da2121Author Commented:
Thanks for your reply
Eugen
0
All Courses

From novice to tech pro — start learning today.