By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

how to get coordinates of a <DIV>?

P: n/a
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"
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Stimp <re*@spumco.com> wrote in message news:<sl****************@carbon.redbrick.dcu.ie>.. .
How could I get the coordinates of a DIV relative to the page, in
javascript?

Thanks


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?
Jul 23 '05 #2

P: n/a
Java script Dude wrote:
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?


Have a poke around here:

http://www.quirksmode.org/js/findpos.html

Cheers, Fred.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.