PDA

View Full Version : Browser Resize


infringer
03-25-2003, 11:26 AM
Hey guys,
I know this topic has come up before but I just found this stuff out, and thought it was pretty cool. Maybe you already knew about it maybe you didn't.

if you put the following in your address bar , it will change the size of your browser to the sizes inputted. Allowing you to see it at that size :)


javascript:window.ResizeTo(800,600)

-or-

javascript:window.ResizeTo(1024,768)

-or-

Any size you want.


Also make sure you take out the spaces between java & script :)

I just thought it was pretty cool, I have them added as bookmarks. (Once you add the bookmark you will have to right-click & properties to actually set the page up)

It leaves you on the same page, just resizes your browser.

Oh well, just trying to be helpful.

-David

Sardtok
03-26-2003, 12:48 PM
Yes that's how you run javascripts as links in a webpage,
for instance pop-ups that open when you click a link, with a specified size and so on...
Most people make their own functions for this (for instance me),
and then just have a link that links to something like:
javascript:functionName(arg1, arg2,arg3,...)
I use this to pop up game windows with the correct size and such on chickensoft,
I know popcap.com uses it the same way...
LucasArts uses it for image galleries, and so on...
It's a nice feature... ;)