In javascript I can use
var DivHeight = document.getElementByID("cw").offsetHeight;
to get the height of a div after it has been created. Is there a vbscript equivalent?
Printable View
In javascript I can use
var DivHeight = document.getElementByID("cw").offsetHeight;
to get the height of a div after it has been created. Is there a vbscript equivalent?
Is this for VBScript client side or server side?
If it's server side (ASP), then you cannot. But if it's client side VBScript, I believe you'd use almost the same code.
Code:Dim DivHeight
DivHeight = document.getElementById("cw").offsetHeight