Given a DIV of a page, I would like to get by Javascript what is the stylesheet inherit for the A elements.
So, for example
<html>
<head>
BODY { font-size:18px; }
A { color: red; }
#layer A { color: green; }
</head>
<div id="layer">
<a href="xxx">yyy</a>
</div>
</body>
</html>
I would like a JS function like getStyle("layer", "a") and it returns me "font-size:18px;color: green;" , that is all the styles applied to that element of that div, inherited from all the stylesheet.
Thank you !