<html> <body> <script id="myScript" for="myButton" event="onclick()"> alert(myScript.event); </script> <button id="myButton">Event for This Script</button> </body> </html>