<html> <body> <button onclick="alert(this.attributes.getNamedItem('onclick').value);"> get Named Item </button> </body> </html>