Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
64
rated 0 times [  67] [ 3]  / answers: 1 / hits: 88253  / 14 Years ago, tue, march 8, 2011, 12:00:00

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>

More From » html

 Answers
12

I put this in an answer as the comment became to long.



The only thing that I have found that is close to the resizing of the chrome window is to use a chrome extension that can resize the window.
The actual extension command is chrome.windows.update(...).



Take a look here.



But I am not sure this is what you are looking for.

If it still interests you there are at least 2 extensions that can do this, that I have seen try this one



Be happy and good luck!


[#93370] Monday, March 7, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sashacitlallik

Total Points: 30
Total Questions: 100
Total Answers: 85

Location: Belarus
Member since Tue, Mar 14, 2023
1 Year ago
;