how to got connect to css/html and get the current color of a div and then save it as a variable for further work in java script? e.g. there is a red element on your html page and you want to find its color then save it as a variable in js.
Html
<div type="button" value="a1" id="a1" onclick="fire(this.id);">a1</div>
CSS
#a1{
color: white;
background-color: darkblue;
}
i change the color of this div tho once further in my program. Yeah so im currently not sure how to grab the color of the div once it has been changed through java script.