Solved

Start Run javascript:window.open(screen.availWidth,screen.availHeight)

Posted on 2004-08-10
7
599 Views
Last Modified: 2008-01-09
Hi. I tried this approach to open a full window but no result I still always get a small window, I tried the trick of updating the registry, still no luck.

What is wronk with my ie? all new windows open small?

0
Comment
Question by:robrodp
  • 3
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:kolpdc
ID: 11771475
do not know, how you tried to open. so i only give you hints that, i think, could help:
(links are german)

first try to get the screendimensions. (screen.width, screen.height)
http://de.selfhtml.org/javascript/objekte/screen.htm

then open a new window with the dimensions found
http://de.selfhtml.org/javascript/objekte/window.htm#open

a complete reference of javascript-objects:
http://de.selfhtml.org/javascript/objekte/index.htm
0
 
LVL 4

Expert Comment

by:kolpdc
ID: 11771496
<script type="text/javascript">
<!--
   var x = screen.width;
   var y = screen.height;

   W1 = window.open("datei.htm", "Window1", "width="+x+", height="+y+", left=0, top=0");
//-->
</script>
0
 
LVL 15

Expert Comment

by:Thogek
ID: 11774946
If you're attempting this within the Start Menu's "Run..." dialog....

I tried this just now (on Windows 2000 Server box), and it doesn't appear to be executing the JavaScript code at all.  It simply pops a new browser window with the full JavaScript code I entered as the path in the Address Bar -- suggesting that it is interpreting this code not as code, but as a file path, which it then tries to find and open.  So the screen.availWidth and such are not being interpreted at all.  (You may be seeing something different on your machine?)

It doesn't appear that the "Run..." dialog has any understanding of a "JavaScript:" protocol, and so is not interpreting it.  And if it did, it is unlikely to know what a window object is, since that is an element of the Web browser document object model, and not of JavaScript itself.  (Additionally, your syntax for calling that window.open method doesn't look right.)  So I'm not sure that you'd be able to get this to do what you're looking for.

Why exactly do you need such a functionality from the "Run..." dialog, anyway?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:robrodp
ID: 11775395
All my ie windows open small no matterthe size of the last window I closed, no matter if I press shift or ctrl or no matter what I do for that matter, I always get a small window. I wantmy windows to open fullsize.

I addressed this matter before and the javascript option was suggested.

Should I reisntall ie? I will but I am sure the problem withh come up again.

robrodp
0
 
LVL 15

Accepted Solution

by:
Thogek earned 500 total points
ID: 11775691
Here's something you can try....

If you have a standard shortcut -- whether on the desktop, on the taskbar, or on your Start Menu -- from which you usually start IE, right click on that shortcut and select "Properties".
In the Properties dialog box, select the "Shortcut" tab.
In the "Run" dropdown, select "Maximized" (or whatever you like).
Click "OK".
Then try using that shortcut to open IE.
0
 
LVL 4

Expert Comment

by:kolpdc
ID: 11781158
the javascript i provided does not work, too? Thogek did not understand you, i think. meant to put the js into a html-page as a scriptpart. datei.htm has to be changed to the file you wish to open.
0
 

Author Comment

by:robrodp
ID: 11970422
None of this has solved the problem. How do I close the question? Or what can I do?
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Problem I downloaded the Microsoft Internet Explorer 9 Beta, today, to give it a test drive and maybe write a review for the site, and it failed miserably and got stuck in a crash restart loop. The error message given is as illustrated below i…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now