<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
  var i = document.getElementById("i");
  i.setAttribute("type", "button");
  i.removeAttribute("type");
}
</script>
</head>
<body onload="boom();"><input id="i"></body>
</html>
