How can i read the width from your document in your browser?
I am using VbScript.
Example:
This doesnt work. :(Code:Dim DocWidth
DocWidth = Document.Width
Printable View
How can i read the width from your document in your browser?
I am using VbScript.
Example:
This doesnt work. :(Code:Dim DocWidth
DocWidth = Document.Width
Here's a couple of Client-side javascript functions
I never use client-side vb-script.
Code:
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.. :)
This was the one (document.body.offsetWidth) that i was looking for. :)Code:Const minwidth = 42
function window_onresize()
cmdNextPage.runtimeStyle.posWidth = _
(document.body.offsetWidth - clng(minwidth))
End function