try<div id="dv" style="color:red">hello world</div>
<input type="button" value="show style" onclick="alert(dv.style.color); alert(dv.currentStyle.fontFamily)">