473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

How to detrmine browser visible availible size

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
8 4305
"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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jeff | last post by:
Hiya, Im currently in the process of developing a picture browser, I want it to run off a CD, basically I have 2 questions for the group. The first is how do I get the program to only view the...
115
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." ...
4
by: Matt | last post by:
When the user resize the browser, the "Frequently Used Link" and "Table 1" and "Table 2" will shift to the left hand side, but table position is unchanged. I really have no idea how to fix that. I...
34
by: Marian Aldenhövel | last post by:
Hi, I am in the process of embarking on building a large web application. I wanted to seize that opportunity to learn how to use CSS and get rid of my ad-hoc approach to HTML-coding (i.e.: add...
6
by: Supra | last post by:
I have 8 panels control on right side uing treeview control. this will work in vb6 but can't figuring in vb.net. and i got error Sub PanelVisible(ByVal szPanel As String) Dim i As Integer,...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
2
by: Mux | last post by:
Hi, I have a problem displaying large amount of data on the browser. The size of the data is to the order of 1.9Mb. and the time taken is about 10 seconds. The file is a tree structure, where...
58
by: Don Li | last post by:
I've tried <body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;"> or <body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;"> or <body...
4
by: Peter May | last post by:
Hi. I know the dimensions area visible on the screen and I would like to picture that there put dynamically, match its size to the window, while retaining the proportions of course. For...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.