<html>
<body>
<h1 style="color:red">Hello World</h1>
<p id="demo">Click the button below to remove the style attribute node from the header above.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var n=document.getElementsByTagName("H1")[0];
var a=n.getAttributeNode("style");
n.removeAttributeNode(a);
};
</script>
<p>Internet Explorer does not support the removeAttribute method.</p>
</body>
</html>