Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 788
  • Last Modified:

Specifying a Windows shortcut to open a window to a specific size

I am trying to provide my users with a Windows shortcut to keep on their desktop that will launch a web page into a specifcally sized window.  I expect they are using Internet Explorer and would like to have it less than full screen.  Darn if I could find a way to add anything into the command line prompt where I have the URL.  Any ideas?
0
dettore
Asked:
dettore
  • 4
  • 3
1 Solution
 
alexmonkeychopsCommented:
you could try using javascript to control the size of window?

i.e. javascript:resizeTo(800,600);
0
 
dettoreAuthor Commented:
Alex,
How do I use that within a shortcut that I place on my users' Desktop for fast launchng directly into the properly size, Internet Explore window?
0
 
dettoreAuthor Commented:
Alex, do you have an answer?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
dettoreAuthor Commented:
Alex,
How do I use that within a shortcut that I place on my users' Desktop for fast launchng directly into the properly size, Internet Explore window?
0
 
Michel PlungjanIT ExpertCommented:
<body onLoad="resizeTo(800,600)"

or use an HTA
0
 
dettoreAuthor Commented:
Sorry to ask a dumb question but where in the Windows shortcut that I put on my users Desktop do I place the string you provided?

<body onLoad="resizeTo(800,600)"

I am wasting a lot of time on this.
I am trying to provide my users with a Windows shortcut to keep on their desktop that will launch a web page into a specifcally sized window.  I expect they are using Internet Explorer and would like to have it less than full screen.  Darn if I could find a way to add anything into the command line prompt where I have the URL.  Any ideas?
0
 
Michel PlungjanIT ExpertCommented:
There is no way you can start IE with a shortcut that sizes the browser

EITHER you need to get them an application that instantiates a browser object with the right size OR you need to call a page of your own that does it for them

If you save this as google.html on the desktop, it will open google in 800x600



<script>
window.resizeTo(800,600)
location.replace('http://google.com')
</script>

Open in new window

0
 
Michel PlungjanIT ExpertCommented:
Just out of curiosity: why did you find this only worth a "B" ?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now