I need a technique to get the value from a CSS file through a javascript function.
Here is the sample of my code:
HTML file ->
<link rel="stylesheet" type="text/css" href="test_css.css" />
<script type="text/javascript">
function loadFunc(){
## code needed here
## alert(left);
}
</script>
CSS file ->
.outer .inner
{
left: 30pt;
top: 20pt;
}
Note: I don't need the whole CSS Text. I want only the property value mentioned for a partuclar key. Is is possible to achieve this using any predefined function?
For example I need the value mentioned for the key - "left" in the CSS file. The result should be "30pt".