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>
This should do the trick, setting the height and width to your desired dimensions.
window.resizeTo(500,500)
You could set it onload
.
<body onload="window.resizeTo(500,500)">