Solved

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

Posted on 2004-08-10
7
624 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
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.

810 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