I'm using DOM and creating elements and CSS classes dynamically. How can I remove a CSS class that I have created previously using JavaScript only?
I use this code to create CSS class node:
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.s1_o1{position:absolute;left:487px;top:243px;width:226px;height:61px;background-color:#ffffff;color:#ff0000;font: 18px Arial;}';
document.getElementsByTagName('head')[0].appendChild(style);
I want to remove the s1_o1 class.
<style></style>element in the<head>?