How can I resize the window?

Platform: ASP.NET| Category: Client Side Scripting

You can resize a window with JavaScript using ‘window.resizeTo(valueX,valueY)’.


<script> 
function ResizeWindow()
{
	window.resizeTo(800,800);
}	
</script>	

Note also that the parameters of resizeTo() have different meaning in different browsers. In Internet Explorer the parameters specify the outer size of the window, while in Netscape Navigator they refer to the inner size (which does not include the window borders, toolbar, status bar, title bar, and the address line). The ‘window.resizeBy()’ method is slightly different than it’s ‘resizeTo()’ which changes the windows dimensions by number of pixels from it’s current size.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.