Reset all javscript-applied styles
Let's say we have this
var e = document.getElementById("someElement");
e.style.borderColor = "gold";
e.style.background = "yellow";
e.style.padding = "5px";
// more style modifications via javascript
There may have been other styles set inline or in an external CSS file.
Is there a method to clear all Javascript-applied styles? Like e.style.* =
inherit or e.removeJavaScriptAppliedStyles().
No comments:
Post a Comment