Código HTML:
<html> <body> <input name="inputer" value="volver" type="submit" onclick=""> <input name="inputer_2312422" value="esconder" type="submit" onclick="clear()"> <script> function clear(){ var ID = 2312423; alert(Event.type); document.getElementsByName("inputer")[0].type = "hidden"; } </script> </body> </html>