when i get style.right value it is empty code example
Example: style.top coming back empty
/* The .style property is for getting styles that were placed directly
on the element. It doesn't compute styles from your stylesheets. */
See getComputedStyle().