<html>
<body>
<h1>HTML DOM Attributes</h1>
<h2>The removedNamedItem() Method </h2>
<input id="myInput" type="button" value="OK">
<p>Click the button below to remove the type attribute of the input element above.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
const nodeMap = document.getElementById("myInput").attributes;
nodeMap.removeNamedItem("type");
}
</script>
</body>
</html>