 |
|
 |
|
Next: IE 7 Question regarding settings
|
| Author |
Message |
External

Since: Feb 12, 2008 Posts: 1
|
(Msg. 1) Posted: Tue Feb 12, 2008 9:06 am
Post subject: IE6 / Javascript - Maximize window / windows taskbar location? Archived from groups: microsoft>public>windows>inetexplorer>ie6>browser (more info?)
|
|
|
Hi all...
I have a javascript question for IE 6. I want to maximize the browser
window and place it on the screen such that it does not end up under
the task bar.
I understand how to resize the window so that its size matches the
area of the screen not taken up by the task bar...
window.resizeTo(screen.availWidth, screen.availHeight);
The question then becomes were to position the window on the screen so
that it doesn't end up partially burried beneath the task bar.
I.E. if I say window.moveTo(0,0) after running the above resize, it
works great if the taskbar is on the bottom of the screen. But if I
do this and the task bar is on the left of the screen, the left side
of the window ends up underneath the task bar. Similarly, I can move
to (for example) window.moveTo(screen.width-screen.availWidth,0),
which will work if the task bar is on the left, but if the task bar is
on the right then the right side of the browser window ends up beneath
the task bar. There is a similar issue when the task bar is on the
top of the screen.
If I could somehow tell, through Javascript, which side of the screen
the task bar is on (top, bottom, left, right), this whole problem
would become trivial. As far as I can tell, there is no way to make
this determination, but if anyone can suggest a way where I can do
this it would be very much appreciated. >> Stay informed about: IE6 / Javascript - Maximize window / windows taskbar locat.. |
|
| Back to top |
|
 |  |
External

Since: Feb 15, 2008 Posts: 4
|
(Msg. 2) Posted: Fri Feb 15, 2008 2:56 pm
Post subject: Re: IE6 / Javascript - Maximize window / windows taskbar location? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi,
You are right. There is no javascript functions to return the TaskBar
attributes.
You could try showModalDialog or showModelessDialog instead of open. Model
windows should display in the top z-Order, covering the Taskbar and Desktop.
Regards.
<skull_leader7.DeleteThis@yahoo.com> wrote in message
news:892045da-afd4-4571-99bb-fb25cfb86aae@c4g2000hsg.googlegroups.com...
> Hi all...
>
> I have a javascript question for IE 6. I want to maximize the browser
> window and place it on the screen such that it does not end up under
> the task bar.
>
> I understand how to resize the window so that its size matches the
> area of the screen not taken up by the task bar...
>
> window.resizeTo(screen.availWidth, screen.availHeight);
>
> The question then becomes were to position the window on the screen so
> that it doesn't end up partially burried beneath the task bar.
>
> I.E. if I say window.moveTo(0,0) after running the above resize, it
> works great if the taskbar is on the bottom of the screen. But if I
> do this and the task bar is on the left of the screen, the left side
> of the window ends up underneath the task bar. Similarly, I can move
> to (for example) window.moveTo(screen.width-screen.availWidth,0),
> which will work if the task bar is on the left, but if the task bar is
> on the right then the right side of the browser window ends up beneath
> the task bar. There is a similar issue when the task bar is on the
> top of the screen.
>
> If I could somehow tell, through Javascript, which side of the screen
> the task bar is on (top, bottom, left, right), this whole problem
> would become trivial. As far as I can tell, there is no way to make
> this determination, but if anyone can suggest a way where I can do
> this it would be very much appreciated. >> Stay informed about: IE6 / Javascript - Maximize window / windows taskbar locat.. |
|
| Back to top |
|
 |  |
External

Since: Mar 05, 2008 Posts: 1
|
(Msg. 3) Posted: Wed Mar 05, 2008 2:31 am
Post subject: Re: IE6 / Javascript - Maximize window / windows taskbar location? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Although Javascript 1.2 supports the following:
window.moveTo(screen.availLeft, screen.avail.Top);
it is not implemented in IE yet.
The following will keep your window border always within screen limit. It
will keep same distance for right/left or top/bottom according to your
taskbar size and position. Although not true fullscreen it comes close:
window.moveTo(screen.width-screen.availwidth,screen.height-screen.availheight);
window.resizeTo(screen.availwidth+screen.availwidth-screen.width,screen.availheight+screen.availheight-screen.height);
<skull_leader7.DeleteThis@yahoo.com> wrote in message
news:892045da-afd4-4571-99bb-fb25cfb86aae@c4g2000hsg.googlegroups.com...
> Hi all...
>
> I have a javascript question for IE 6. I want to maximize the browser
> window and place it on the screen such that it does not end up under
> the task bar.
>
> I understand how to resize the window so that its size matches the
> area of the screen not taken up by the task bar...
>
> window.resizeTo(screen.availWidth, screen.availHeight);
>
> The question then becomes were to position the window on the screen so
> that it doesn't end up partially burried beneath the task bar.
>
> I.E. if I say window.moveTo(0,0) after running the above resize, it
> works great if the taskbar is on the bottom of the screen. But if I
> do this and the task bar is on the left of the screen, the left side
> of the window ends up underneath the task bar. Similarly, I can move
> to (for example) window.moveTo(screen.width-screen.availWidth,0),
> which will work if the task bar is on the left, but if the task bar is
> on the right then the right side of the browser window ends up beneath
> the task bar. There is a similar issue when the task bar is on the
> top of the screen.
>
> If I could somehow tell, through Javascript, which side of the screen
> the task bar is on (top, bottom, left, right), this whole problem
> would become trivial. As far as I can tell, there is no way to make
> this determination, but if anyone can suggest a way where I can do
> this it would be very much appreciated. >> Stay informed about: IE6 / Javascript - Maximize window / windows taskbar locat.. |
|
| Back to top |
|
 |  |
| Related Topics: | Capture maximize and restore down in javascript resize event - Hi, I'm developing a web application where I've got a javascript window resize event handler that resizes specific content on my page based on the window size. Unfortunately, it seems that in IE6, when I maximize the browser window, or restore down..
How to automatically maximize size of new window - I use several Web sites that provide medical information. I wondered if there is a setting in Internet Explorer 6 that configures a new window to open to fill the screen. I am using XP Ppr. Often the Window is only partially sized very little..
javascript - when I click on links that are javascript void 0, nothing happens. how do i fix this?
Opening a new window causes the window to open far to the .. - When a user clicks on a link the link opens a new window and the window opens all the way to the right of the screen. It must be dragged to the center of the screen. Is there a way to make sure the window opens relatively centered? Thanks in advance.
how do i install javascript? - since fresh install i keep getting a pop up to install javascript which i keep closing - i now want to install javascript and i can't find how to - how do i install javascript? |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|