public final int getRelativeX ( ) { NativeEvent e = getNativeEvent ( ) ; Element target = getTarget ( ) ; return e . getClientX ( ) - target . getAbsoluteLeft ( ) + target . getScrollLeft ( ) + target . getOwnerDocument ( ) . getScrollLeft ( ) ; }
Get relative x position on the page .