// Get a button element by name const button = document.getElementsByName('myButton')[0]; console.log(`Button Element (by Name):`, button);