Javascript Change Current Window Size

Related Post:

Javascript Change Current Window Size - 3 Answers Sorted by: 0 Try this $ (function () document.body.style.width = '600px' document.body.style.height= '900px' ); 15 What is the best way to set the size of the browser window when the page loads I think this can be done in JavaScript Please explain Here is my code that is not working html body onload window resizeTo 640 480 video src rushmore mp4 controls controls your browser does not support the video tag video body html

Javascript Change Current Window Size

Javascript Change Current Window Size

Javascript Change Current Window Size

Example 1 Open a new window, and resize it to 300 x 300: function openWin () myWindow = window.open("", "", "width=200, height=100"); function resizeWin () myWindow.resizeTo(300, 300); Try it Yourself ยป More examples below. Description The resizeTo () method resizes a window to a new width and height. See Also: The resizeBy () Method Note: The example output here is in an