Resize browser window!

Hey!

I’m looking for a script that can resize the browser window! For example: I got a script that opens a new window, in the new window I would like to have a few buttons, that when you press the window would be resized! …Like it fades to another size!

Button>JavaScript>Resize window, eh? is this your request? Well, take a look at the following:

<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function resize() {
window.resizeTo(740, 580);  
}
</SCRIPT>
</HEAD>
<BODY>
<input type=button onclick=resize()>

that will make the window resize gradually?

=)

Try the following:

Insert this into your HTML:

<SCRIPT LANGUAGE="JavaScript">
function resize(x, y) {
window.resizeTo(x, y);  
}
</SCRIPT>

And the actionscript involved is:

[*PHP]x = 500;
y = 500;
getURL(“javascript:resizeTo(”+x+","+y+");");



h88 8]

*Originally posted by Guig0 *
**that will make the window resize gradually? **

Nope.

that didnt work:(

hey… i havent dealt with javascript (yet:P)… but if loops work the samy way the do on any other languages, you might be able to make a loop that resizes the window gradually using this code…

*Originally posted by Abraxxas *
**

<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function resize() {
window.resizeTo(740, 580);  
}
</SCRIPT>

**

if theres a function that gets the current window size, then you can subtract the new size off the current size and divide that into lets say 10 and store it into a variable, and loop the resizeTo() function 10 times, where it subtracts the number in that variable…
again, this is just an assumption… im into javascript really=)

Guig0:

remove the space from the java script word, i dunno why the forum add’s this space. :-\