By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,504 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,504 IT Pros & Developers. It's quick & easy.

How to detrmine browser visible availible size

P: n/a
Hi!

I have a web page, where I don't want vertical scrolling. In case, that
the user has too many toolbars in browser I don't want to show some
footer image at the bottom of the screen.

Simple question: how I determine my browser visible availible size?
Unfortunately what I found is only screen.width and screen.height,
which give monitor resolution. That's not what I need.

Thanks in advance.

Vadim

Dec 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
"Vadim" <va*******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi!

I have a web page, where I don't want vertical scrolling. In case, that
the user has too many toolbars in browser I don't want to show some
footer image at the bottom of the screen.

Simple question: how I determine my browser visible availible size?
Unfortunately what I found is only screen.width and screen.height,
which give monitor resolution. That's not what I need.

Thanks in advance.

Vadim


Will these help?

screen.availwidth
screen.availheight

I don't know if browsers other than IE support them.
Dec 19 '05 #2

P: n/a
Unfortunately, it seems that screen.availheight the size of Maximized
window without Windows task bar, since on my monitor resoultion
1024x768, my screen.availheight is always 738 (no matter what I do with
toolbars).

Dec 19 '05 #3

P: n/a
Vadim wrote:
I have a web page, where I don't want vertical scrolling.
So you are using the wrong medium. Try a PowerPoint presentation instead.
In case, that the user has too many toolbars in browser I don't
want to show some footer image at the bottom of the screen.
You cannot show something "at the bottom of the screen" on the Web,
unless you successfully force fullscreen mode.
Simple question: how I determine my browser visible availible size?
Try window.innerWidth/.innerHeight for Mozilla and Opera, and
document.documentElement.offsetWidth/.offsetHeight for the rest.
Unfortunately what I found is only screen.width and screen.height,
which give monitor resolution.
No, they do not. For example, virtual desktops exist, and IE has
been reported to return the "resolution" of the primary display only.

See also <URL:http://pointedears.de/scripts/fullscreen.jpg>
That's not what I need.


That is true; what you need is a minimum clue about Web authoring.
PointedEars
Dec 19 '05 #4

P: n/a
McKirahan wrote:
"Vadim" <va*******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I have a web page, where I don't want vertical scrolling. In case, that
the user has too many toolbars in browser I don't want to show some
footer image at the bottom of the screen.

Simple question: how I determine my browser visible availible size?
Unfortunately what I found is only screen.width and screen.height,
which give monitor resolution. That's not what I need.
[...]
Will these help?

screen.availwidth
screen.availheight


No.
I don't know if browsers other than IE support them.


Not even IE supports that. And before you post screen.availWidth
and screen.availHeight: that will not help either, nor will the
properties I suggested really do. Only a minimum clue about Web
authoring is going to help here.
PointedEars
Dec 19 '05 #5

P: n/a
Thomas 'PointedEars' Lahn said the following on 12/19/2005 1:11 PM:
Vadim wrote:

Unfortunately what I found is only screen.width and screen.height,
which give monitor resolution.

No, they do not. For example, virtual desktops exist, and IE has
been reported to return the "resolution" of the primary display only.

See also <URL:http://pointedears.de/scripts/fullscreen.jpg>


Too bad thats not your own original image.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 19 '05 #6

P: n/a
Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 12/19/2005 1:11 PM:
See also <URL:http://pointedears.de/scripts/fullscreen.jpg>


Too bad thats not your own original image.


The author has made the image available to the public domain explicitly.
PointedEars
Dec 19 '05 #7

P: n/a
Thomas 'PointedEars' Lahn said the following on 12/19/2005 6:36 PM:
Randy Webb wrote:

Thomas 'PointedEars' Lahn said the following on 12/19/2005 1:11 PM:
See also <URL:http://pointedears.de/scripts/fullscreen.jpg>


Too bad thats not your own original image.

The author has made the image available to the public domain explicitly.


I didn't say anything to the contrary. But you mis-represented it as
being your own screenshot when it isn't.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

Dec 20 '05 #8

P: n/a
On 2005-12-19, Thomas 'PointedEars' Lahn <Po*********@web.de> wrote:
Vadim wrote:
I have a web page, where I don't want vertical scrolling.


So you are using the wrong medium. Try a PowerPoint presentation instead.
In case, that the user has too many toolbars in browser I don't
want to show some footer image at the bottom of the screen.


You cannot show something "at the bottom of the screen" on the Web,
unless you successfully force fullscreen mode.


I was able to position a layered div at the bottom of the browser window

it wouldn't stick stick when the pages was resized etc...
Bye.
Jasen
Dec 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.