how to get coordinates of a <DIV>?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stimp

    how to get coordinates of a <DIV>?

    How could I get the coordinates of a DIV relative to the page, in
    javascript?

    Thanks
    --

    "I hear ma train a comin'
    .... hear freedom comin"
  • Java  script  Dude

    #2
    Re: how to get coordinates of a &lt;DIV&gt;?

    Stimp <ren@spumco.com > wrote in message news:<slrncl3em d.tab.ren@carbo n.redbrick.dcu. ie>...[color=blue]
    > How could I get the coordinates of a DIV relative to the page, in
    > javascript?
    >
    > Thanks[/color]

    Unfortunatly, I've checked for this many ways but no browser to my
    knowledge supports this feature.

    Anybody else find a way to expose the x and y of a rendered DOM
    element?

    Comment

    • Fred Oz

      #3
      Re: how to get coordinates of a &lt;DIV&gt;?

      Java script Dude wrote:
      [color=blue]
      > Unfortunatly, I've checked for this many ways but no browser to my
      > knowledge supports this feature.
      >
      > Anybody else find a way to expose the x and y of a rendered DOM
      > element?[/color]

      Have a poke around here:



      Cheers, Fred.

      Comment

      Working...