Jack Nilan         Javascript Tutorial        EMail : jacknilan@yahoo.com



Lesson 13 - Setting the Window Size

We can set the window size with the onLoad command. We can also keep people from changing the window size with the onresize command. We need to write a function which we will call SetSize() in the script.

function SetSize()
{
window.resizeTo(800,600);
}




Then we just change our body heading to

<body onLoad="SetSize()" onresize="SetSize()">