If I set a style inline like this:
<div id='myMenu' style='background-color:red'></div>
Then in JS call
alert("document.getElementById('myMenu')style.backgroundColor");
The result alert box would report "red"
However if I set the style internally in the via a class or id
<style type='text/css'>
.menu {
background-color:red;
}
</style>
Then the alert reports blank.
Will styles with .getElementById
only work with inline style? Seems very limiting...