To resize a window we can use the window.resize() method.
This method takes in two parameter one for height of the window and other for the width of the window.
Now as I want the window to be resized on page load, I had used a small piece of Jquery for this. In the code shown below I have used the resize() method in the document ready function, Here 800 is width and 600 is the height (both in pixels)
{code type=javascript}
$(document).ready(function () {
window.resizeTo(800, 600);
});
{/code}
Hope this helps ! 🙂