element.style refers to inline styles, so it would just remove any styles set in \<div style=""\> or set using .style, not styles set in a class or id.