<input type="hidden" name="up">
<input type="hidden" name="down">
const up_names = document.getElementsByName("up");
console.log(up_names[0].tagName); // displays "INPUT"
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.