Click to See Complete Forum and Search --> : How to read the width from your browser?
How can i read the width from your document in your browser?
I am using VbScript.
Example:
Dim DocWidth
DocWidth = Document.Width
This doesnt work. :(
Mark Sreeves
Jun 6th, 2000, 05:30 PM
Here's a couple of Client-side javascript functions
I never use client-side vb-script.
function docHeight() {
if (document.all)
return document.body.offsetHeight
else if (document.layers)
return document.body.document.height;
}
function docWidth() {
if (document.all)
return document.body.offsetWidth
else if (document.layers)
return document.body.document.width;
}
Thank you.. :)
Const minwidth = 42
function window_onresize()
cmdNextPage.runtimeStyle.posWidth = _
(document.body.offsetWidth - clng(minwidth))
End function
This was the one (document.body.offsetWidth) that i was looking for. :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.