Change window resolution

Shows how to change the window size by using JavaScript.

function resize_window(){
 
    // move the window to 0,0 (X,Y)
    window.moveTo(0, 0);
 
    // resize the window to 800x600
    window.resizeTo(800, 600);
 
}
 
resize_window();
Snippet information

Author:
Jonas John

License:
Public Domain

Language:
JavaScript

Created:
06/06/2006

Updated:
06/06/2006

Tags:
,




Sorry folks, comments have been deactivated for now due to the large amount of spam.

Please try to post your questions or problems on a related programming board, a suitable mailing list, a programming chat-room,
or use a QA website like stackoverflow because I'm usually too busy to answer any mails related
to my code snippets. Therefore please just mail me if you found a serious bug... Thank you!


Older comments:

None.