… containing the text which describes the button function scriptToExecute() { // function that is run after the page has loaded to set attributes // properties on elements referenced by an array of values function insertAttributes(){ var buttons = document.getElementsByTagName("button"); if (buttons){ for(var i=0; i<buttons.length; i++){ buttonTitle = buttons[i].title…