Results 1 to 2 of 2

Thread: Get Div Height

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    Get Div Height

    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?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Get Div Height

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width