So would it be correct to say that your question is "What is the Javascript code which allows me to resize the browser window?"
Hopefully there isn't any -- I set my browser window the way I like it and I don't want your code messing with that -- but at any rate that question doesn't seem to be related to
applets in any way. So let's move it to the Javascript forum. But if it turns out I have completely misinterpreted your question, just post a clarification and we'll move it again, if necessary.