Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prototype Equivalent JQuery's offset()

I would like to know if there is any prototype equivalent to the JQuery's .offset() function?

Thanks for your help.

like image 992
Steffi Avatar asked Aug 01 '26 05:08

Steffi


1 Answers

jQuery's offset (element position relative to document) maps to Element.cumulativeOffset

similarly, jQuery's position (element position relative to offset parent) maps to Element.positionedOffset

like image 119
James Manning Avatar answered Aug 03 '26 18:08

James Manning



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!