Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set browser window size and position via URL parameters' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set browser window size and position via URL parameters
Authored by: palahala on Apr 22, '09 05:11:48PM

Alternatively: add a bookmark for the following, put in the Bookmarks Bar and make sure it's listed high in the list to get a Cmd-n shortcut to resize any active window:

javascript:moveTo(10,10);resizeTo(1000,700);

Unfortunately this forum does not allow javascript: links in HTML, but Reset window position gives you a headstart for bookmarking ;-)



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: Neville Hillyer on Apr 23, '09 02:46:29AM

This works for me with Mozilla browsers but I have not been able to get it to work with WebKit browsers. I had the same experience with JavaScript in my home page slot, ie OK with Mozilla but not working with WebKit.



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: palahala on Apr 23, '09 03:15:51AM

Strange. The above bookmarklet works fine in both Safari 3.2.1 and 4 beta on my Intel Macs.



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: palahala on Apr 23, '09 03:19:37AM

And true, for the homepage slot both Safari 3 and 4 yield:

Safari can't use JavaScript for this action.
Safari can't run the script "moveTo(10,10);resizeTo(1000,700);" because Safari doesn't allow JavaScript to be used in this way.



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: Neville Hillyer on Apr 24, '09 04:29:22AM

Sorry - I cannot repeat my difficulty - it works perfectly well in all Safari and iCab bookmark locations. Pity about the silly home page restriction. This may be a better way of doing this than my original hint - I will give it further thought.



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: zoff on Apr 24, '09 04:27:47AM
I've been using:
javascript:self.moveTo(900,0);self.resizeTo(1020,screen.availHeight);
to resize Safari windows, but since Safari 4 it doesn't resize a window with multiple tabs, only single tabbed windows.

[ Reply to This | # ]