title: How to detect current web page or element direction (rtl/ltr) or any other attribute in javascript?
body: <p>How can i read any attribute that currently effects an element that is not necessarily style? one such attribute would be "dir".</p>