Jump to content
xisto Community
BuffaloHelp

Maintaining Browser Size On Your Computer browser window size defined by you

Recommended Posts

I have the darnest time while navigating the internet these days. Has this happen to you? You visit a site for your research and enter a site that causes multiple browsers to open (but in different size). But your prefered browser size is not full but a certain size (probably you made it such wide and sich high). Or, you test your website for different resolutions. But the last browser window you closed caused your new browsers to open in different sizes... ack!

 

My computer screens are either in 1280x1024 or widescreen mode. And thus i want my browser to be in fixed 1024x768 (for both resolution testing for webpages or just because I like it that way). I thought I could be satisfied with editing registry but that wasn't enough. I found this code from B&T's Tips and Scripts.

 

java script:resizeTo(1024,768);

*there's no spce between "java" and "script" but this board is protecting it from malicious attempt so it inserted a space. Please make sure there's no space, i.e. "javascript"

 

This one liner, when enterend as URL for a bookmark or entered to the address bar, can reclaim your browser to determined size by you. All you need to do is open your browser, add bookmark and enter the above code as URL. I did it with "about:blank" so that no other favicon or other information was associated to the bookmarked link. The IE gave me error messages while saving this bookmark URL, but I continued by clicking OK and it works fine. So i now have three bookmarks with 3 different browser sizes that I can change on a demand. <_<

 

This code has been tested on IE and Firefox without an issue. If there's a better way of doing this task, please feel free to share.

Share this post


Link to post
Share on other sites

I have the darnest time while navigating the internet these days. Has this happen to you? You visit a site for your research and enter a site that causes multiple browsers to open (but in different size). But your prefered browser size is not full but a certain size (probably you made it such wide and sich high). Or, you test your website for different resolutions. But the last browser window you closed caused your new browsers to open in different sizes... ack!

 

My computer screens are either in 1280x1024 or widescreen mode. And thus i want my browser to be in fixed 1024x768 (for both resolution testing for webpages or just because I like it that way). I thought I could be satisfied with editing registry but that wasn't enough. I found this code from B&T's Tips and Scripts.

 

java script:resizeTo(1024,768);

*there's no spce between "java" and "script" but this board is protecting it from malicious attempt so it inserted a space. Please make sure there's no space, i.e. "javascript"

 

This one liner, when enterend as URL for a bookmark or entered to the address bar, can reclaim your browser to determined size by you. All you need to do is open your browser, add bookmark and enter the above code as URL. I did it with "about:blank" so that no other favicon or other information was associated to the bookmarked link. The IE gave me error messages while saving this bookmark URL, but I continued by clicking OK and it works fine. So i now have three bookmarks with 3 different browser sizes that I can change on a demand. <_<

 

This code has been tested on IE and Firefox without an issue. If there's a better way of doing this task, please feel free to share.

 

One question up here:

 

What does this do actually?

 

Does it resets the browser resolution

 

Or Does it resets the computer's screen resolution?

 

It would be just great if it resets the browser resolution

 

coz different browser resolutions are posing a great problem for webmasters!

 

It effects the look of the website.

Share this post


Link to post
Share on other sites

The Javascript will cause the browser window to resize to the resolution you specify. The resolution of your monitor won't change at all. I've tried it and it works in IE and FF, but Opera seems to refuse it and nothing happens? It works if you click Restore on the tab first, but if the tab is maximised then it won't change the size. Can anyone else get this to work in Opera correctly, as I would find it useful for testing web pages and CSS.

Edited by rvalkass (see edit history)

Share this post


Link to post
Share on other sites

coz different browser resolutions are posing a great problem for webmasters!
It effects the look of the website.


Too bad if you use javascript to change browser size people will most of the time leave your site immediately. Also consider that not everyone uses the same monitor resolution and some people disable javascript. In Firefox I think JS browser size changing is default off.

Javascript can be used for a lot of cool things, but stuff like that is pretty n00by.

Share this post


Link to post
Share on other sites

Just tried implementing this in Firefox 2.0.0.12 and it does not seem to work for me.Any ideas? Mind you, I have the resize options on the FF Web Developer's toolbar, so not a big deal.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.