|
|
|
|
![]() ![]() |
May 2 2006, 08:48 AM
Post
#1
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,438 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
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. HTML 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. |
|
|
|
May 2 2006, 04:34 PM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 8 Joined: 2-May 06 Member No.: 22,938 |
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. HTML 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. |
|
|
|
May 2 2006, 05:55 PM
Post
#3
|
|
|
apt-get moo ![]() Group: [MODERATOR] Posts: 2,056 Joined: 28-May 05 From: Hertfordshire, England Member No.: 7,593 ![]() |
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.
This post has been edited by rvalkass: May 2 2006, 05:57 PM |
|
|
|
May 4 2006, 12:19 AM
Post
#4
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
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. |
|
|
|
Feb 25 2008, 04:45 AM
Post
#5
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,882 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
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. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 26th July 2008 - 03:33 PM |