How to unset the style in your DOM element

element.setAttribute('style',' ')

Notice the second argument is a space, NOT the empty string. The empty string will not work, it will just ignore it. I've only tested this on FF so far.

blog comments powered by Disqus