[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Browser resolution?
****** message to minivend-users from "A. vd. Beemt" <antoine@medusa.nl> ******
At 09:43 6-5-99 +0200, you wrote:
>****** message to minivend-users from jojo
<hans-joachim.leidinger@home.gelsen-net.de> ******
>
>Hello list,
>
>are there a way to get the browser resolution? I am able to get the
>browser agent and to create different page for different browser! But i
>need the browser resolution to fit my page!
>Any ideas?
>
Joachim,
I am not sure what you are looking for... But I think however the answer
lies in Javascript.
Therefore I'll sum up the objects and properties that might be useful:
* If you are looking for the actual screen settings you want to use the
object 'screen' with the following properties: Note that the screen object
only works with JS 1.2, this means browsers version 4 and up.
screen.availHeight available height of the screen (=total height - taskbar)
availWidth available width of the screen
colorDepth depth of browser's colorpalette
height total height of screen
width
* if you are looking for the settings of the current browserwindow, you
have to use the 'window' object or method:
window.screen (JS 1.2, in combination with properties above)
And with the window.open() method you can set the size yourself....
Cheers, Antoine
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list