Jigs Jigs - 4 months ago 4
Javascript Question

How to set Browser's window using jquery?

I want to change my browser's width and height using JavaScript and/or jQuery, is this possible?

Answer

http://cybertext.com.au/tips_HTML_window_size.htm

In the head section:

<script>   
function changeScreenSize(w,h){       
    window.resizeTo( w,h )     
}
</script> 

In the body tag

<body onload="changeScreenSize(500,300)">
Comments